.net remoting 的问题 在CSDN上用搜索功能搜索一下remoting,CSDN上很多关于这个问题的帖子。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 csdn查了,有一个同样问题。可是也没有答案 看看这篇文章:http://www.cnblogs.com/wayfarer/articles/28248.aspx 我知道为什么,因为我也遇到过,<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" />这一句话 之前的问题没有了。可是又报了个新的错 :此远程处理代理没有信道接收,这意味着服务器没有正在侦听的已注册服务器信道,或者此应用程序没有用来与服务器对话的适当客户端通道。代码如下 :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)); 求视频捕获解决方法 界面问题,大家来帮忙 我想用C#做个东西,请大家给点思路 asp.net(C#)项目经理 应该具备什么素质 帮我看下C#怎么实现这种界面。。。 一个绑定的问题 c#的运行问题(非常非常菜的一个问题),请大家不要笑话我。 如何获取使用ShowDialog方法显示的窗体? 高分!Design Pattern电子版下载. winform中的this.sqlconnection1.open()怎么老是出错? 如何通过C#将excel的数据转换为xml? 关于timer的简单问题
http://www.cnblogs.com/wayfarer/articles/28248.aspx
<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" />这一句话
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));