2010-05-22 69 views
1

我試圖創建兩個IPC渠道IPC問題 - IPC已經註冊

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"); 

但是當它到達第二ChannelServices它給出了一個錯誤

通道「IPC '已註冊

會有人友好地幫助,請

回答