在窗体load()的是,
TcpChannel chan = new TcpChannel(8086);
ChannelServices.RegisterChannel(chan);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(ClassLibrary1.Class1), "Test", WellKnownObjectMode.SingleCall);然后在使用
TcpChannel chan = new TcpChannel();
ChannelServices.RegisterChannel(chan);
return Activator.GetObject(typeof(Class1),"tcp://localhost:8086/Test"); 出现错误!!
提示tcp已经被注册!!???
该怎么改动!!
我只有一台机器!!
TcpChannel chan = new TcpChannel(8086);
ChannelServices.RegisterChannel(chan);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(ClassLibrary1.Class1), "Test", WellKnownObjectMode.SingleCall);然后在使用
TcpChannel chan = new TcpChannel();
ChannelServices.RegisterChannel(chan);
return Activator.GetObject(typeof(Class1),"tcp://localhost:8086/Test"); 出现错误!!
提示tcp已经被注册!!???
该怎么改动!!
我只有一台机器!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货