服务器如下:ChannelServices.RegisterChannel( new TcpServerChannel( 端口号));
RemotingConfiguration.RegisterWellKnownServiceType( typeof( RemotingPortal ), "RemotingPortal", WellKnownObjectMode.SingleCall );客户端如下:
SysConstant.uncdb = (RemotingPortal)System.Activator.GetObject( typeof(RemotingPortal),服务器IP + 端口号+ "RemotingPortal" );
RemotingConfiguration.RegisterWellKnownServiceType( typeof( RemotingPortal ), "RemotingPortal", WellKnownObjectMode.SingleCall );客户端如下:
SysConstant.uncdb = (RemotingPortal)System.Activator.GetObject( typeof(RemotingPortal),服务器IP + 端口号+ "RemotingPortal" );
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货