static void Main (string [] args)
{
HttpChannel chnl = new HttpChannel (1237);
#if NET_2_0
ChannelServices.RegisterChannel (chnl, false);
#else
ChannelServices.RegisterChannel (chnl);
#endif
RemotingConfiguration.RegisterWellKnownServiceType (typeof (MyRemoteObject), "MyRemoteObject.soap", WellKnownObjectMode.Singleton);
Console.ReadLine ();
}
}