static void Main(string[] args) { Console.WriteLine("ServerStartup.Main(): Server started"); HttpChannel chnl = new HttpChannel(1234); ChannelServices.RegisterChannel(chnl); MyRemoteObject obj = new MyRemoteObject(4711); RemotingServices.Marshal(obj, "MyRemoteObject.soap"); // the server will keep running until keypress. Console.ReadLine(); }