服务器端:
TcpServerChannel channel=new TcpServerChannel(1234);
ChannelServices.RegisterChannel(channel);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(DllAccessDB.Accessdb),"accessdb",WellKnownObjectMode.SingleCall);客户端:
TcpChannel chan=new TcpChannel();
ChannelServices.RegisterChannel(chan);
DllAccessDB.Accessdb zxz=(DllAccessDB.Accessdb)Activator.GetObject(typeof(DllAccessDB.Accessdb),"tcp://"+ServerIP+":"+remotingport+"/accessdb");配置都是正确的,在VS2003下运行良好,没问题,但到了VS2005下调用时就说"服务器未验证客户端"问题,是怎么回事啊!
TcpServerChannel channel=new TcpServerChannel(1234);
ChannelServices.RegisterChannel(channel);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(DllAccessDB.Accessdb),"accessdb",WellKnownObjectMode.SingleCall);客户端:
TcpChannel chan=new TcpChannel();
ChannelServices.RegisterChannel(chan);
DllAccessDB.Accessdb zxz=(DllAccessDB.Accessdb)Activator.GetObject(typeof(DllAccessDB.Accessdb),"tcp://"+ServerIP+":"+remotingport+"/accessdb");配置都是正确的,在VS2003下运行良好,没问题,但到了VS2005下调用时就说"服务器未验证客户端"问题,是怎么回事啊!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货