codeproject上搜索remoting可以找到很多
http://www.codeproject.com

解决方案 »

  1.   

    protected override void OnStart(string[] args)
    {
    EventLog.WriteEntry("RemoteSystemInfo: OnStart -- Entering");
            TCPChannel tcpChannel = new TCPChannel (8085);
            EventLog.WriteEntry("RemoteSystemInfo: OnStart -- Created Channel");
     
            ChannelServices.RegisterChannel (tcpChannel);
    EventLog.WriteEntry("RemoteSystemInfo: OnStart -- Registered Channel");
     
            RemotingServices.RegisterWellKnownType ("PS_RemoteSrvr","PS_RemoteSrvr.PS_SystemInfoSrvr",
                                   "PS_SystemInfoSrvr", WellKnownObjectMode.SingleCall);
            EventLog.WriteEntry("RemoteSystemInfo: OnStart -- RegisterWellKnownType Done");
            EventLog.WriteEntry ("RemoteSystemInfo: OnStart -- Leaving");
    }
      

  2.   

    download the source code from here, a lot of examples of dont net remoting in C#.http://www.apress.com/book/supplementDownload.html?bID=47&sID=374and you can also go there for further infomation:http://www.ingorammer.com/RemotingFAQ/