private static void CreateClientChannel(String arg) { IpcClientChannel channel = new IpcClientChannel(); ChannelServices.RegisterChannel(channel, false); RemotingConfiguration.RegisterWellKnownClientType(typeof(Ipc), "ipc://" + ipcPortName + "/" + ipcServername); Ipc ipc = new Ipc(); ipc.OpenFile(arg); }