在CSDN上用搜索功能搜索一下remoting,CSDN上很多关于这个问题的帖子。

解决方案 »

  1.   

    csdn查了,有一个同样问题。可是也没有答案
      

  2.   

    看看这篇文章:
    http://www.cnblogs.com/wayfarer/articles/28248.aspx
      

  3.   

    我知道为什么,因为我也遇到过,
    <system.runtime.remoting>
    <application>

    <service>
    <wellknown mode="Singleton" type="BmServer.BmSysManage,BmServerPub" objectUri="arnoldmjw"/>
    </service>
    <channels>
    <channel type="System.Runtime.Remoting.Channels.Http.HttpChannel, System.Runtime.Remoting,Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" port="1234">
    <serverProviders>
    <formatter ref="soap" typeFilterLevel="Full" />
    <provider type="BmServer.ProcessCheckChannelSinkProvider, BmServer" />
    </serverProviders>
    </channel>
    </channels>
    </application>
    </system.runtime.remoting>必须加上 <formatter ref="soap" typeFilterLevel="Full" />这一句话
      

  4.   

    之前的问题没有了。可是又报了个新的错 :此远程处理代理没有信道接收,这意味着服务器没有正在侦听的已注册服务器信道,或者此应用程序没有用来与服务器对话的适当客户端通道。代码如下 :Server 端 BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider();
    serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider();
    IDictionary props = new Hashtable();
    props["port"] = 8085;
    TcpChannel chan = new TcpChannel(props, clientProv, serverProv);
    ChannelServices.RegisterChannel(chan);
    RemotingConfiguration.RegisterWellKnownServiceType(
    Type.GetType("RemoteObj.HelloServer, RemoteObj"),
    "SayHello", WellKnownObjectMode.SingleCall);client 端 :ForwardMe param = new ForwardMe();
    HelloServer obj = (HelloServer)Activator.GetObject(typeof(RemoteObj.HelloServer), "tcp://localhost:8085/SayHello");
    if (obj == null) System.Console.WriteLine("未找到服务器");
    else Console.WriteLine(obj.HelloMethod("Caveman",param));