IPC problem in the c# - ipc is already registered

Posted by Lily on Stack Overflow See other posts from Stack Overflow or by Lily
Published on 2010-05-22T17:25:24Z Indexed on 2010/05/22 17:30 UTC
Read the original article Hit count: 545

Filed under:
|
|

hi

I am trying to create two IPC channels

IpcChannel ipcChannel = new IpcChannel("DroolsClient");
                ChannelServices.RegisterChannel(ipcChannel, false);

                objec = (DroolsInterface.RulesEngineInterface)Activator.GetObject(typeof(DroolsInterface.RulesEngineInterface), "ipc://Drools/SreeniRemoteObj");

                IpcChannel ipcChannel2 = new IpcChannel("ProxemClient");
                ChannelServices.RegisterChannel(ipcChannel2, true);

                objec2 = (ProxemProject.ProxemInterface)Activator.GetObject(typeof(ProxemProject.ProxemInterface), "ipc://ProxemProcess/SreeniRemoteObj");

But when it gets to the second ChannelServices it gives an error

The channel 'ipc' is already registered

Would anyone be kind enough to help please

© Stack Overflow or respective owner

Related posts about c#

Related posts about ipc