VBModal
02-13-2005, 04:09 AM
How do i pass a remoting object as a parameter to another remoting object?
I keep on recieving this exeption message "Because of security restrictions, the type
System.Runtime.Remoting.ObjRef cannot be accessed."
The following is the simplified code at the client app:
Private function InsertRecord() As Long
Dim oBAL As New BAL 'Remoting object
Dim obj As New Entity 'Another remoting object; a custom entity object
Dim lReturnValue As Long
lReturnValue = oBAL.AddRecord(obj) 'the part where i recieved the error
Return lReturnValue
End Function
The following is code at the remoting object (BAL)
Private function AddRecord(Byval obj As Entity) As Long
Dim oDAL As New DAL
Dim lReturnValue As Long
'continue process
Return lReturnValue
End Function
I keep on recieving this exeption message "Because of security restrictions, the type
System.Runtime.Remoting.ObjRef cannot be accessed."
The following is the simplified code at the client app:
Private function InsertRecord() As Long
Dim oBAL As New BAL 'Remoting object
Dim obj As New Entity 'Another remoting object; a custom entity object
Dim lReturnValue As Long
lReturnValue = oBAL.AddRecord(obj) 'the part where i recieved the error
Return lReturnValue
End Function
The following is code at the remoting object (BAL)
Private function AddRecord(Byval obj As Entity) As Long
Dim oDAL As New DAL
Dim lReturnValue As Long
'continue process
Return lReturnValue
End Function