Click to See Complete Forum and Search --> : Remoting Failure due to Security


Jim Shaw
July 24th, 2003, 08:59 AM
I am running into an error while experimenting with the remoting samples given in MSDN. I create my remotable class, create and run my host, and create a run my client. The host and remotable class are on a seperate machine, connected to the client machine through a router. I can instatiate an object fine, which makes sense given that the remote connection is not setup until a function call on the remote object is made. When I call a function on the remote object, I always get the following Exception:

Unhandled Exception: System.Runtime.Serialization.SerializationException: Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed.

Does anyone know what security restrictions there may be, and what I would need to set it to in order for it to work?

Thanks in advance for any help.

Jim Shaw