views:

193

answers:

0

Hi everyone,

I have a c++/cli dll wrapping around some native code, and I'm trying to make an IPC server around this dll using the WellKnownServiceType. I wrote the entire thing in this fashion:

Native code->C++/CLI dll->C# server program <---IPC link---> C# client

I'm running into security problems when I do it this way: The client raises a SecurityExcpetion stating, "Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed.".

Searching on the 'net, I've figured out that I need to setup security for the c++/cli dll, and the client process. But the question is, what security, and how do I go about it?

Has anyone else worked on something like this?

Thanks in advance,

Shash