刚才贴错了,那是TCP的客户端-___-b
这个才是开服务器的:
HttpServerChannel hts = new HttpServerChannel(8228);
ChannelServices.RegisterChannel(hts);
RemotingConfiguration.RegisterWellKnownServiceType( typeof(HelloWorldClass), "HelloWorld", WellKnownObjectMode.Singleton );
这个才是开服务器的:
HttpServerChannel hts = new HttpServerChannel(8228);
ChannelServices.RegisterChannel(hts);
RemotingConfiguration.RegisterWellKnownServiceType( typeof(HelloWorldClass), "HelloWorld", WellKnownObjectMode.Singleton );
开一个ASP的Web服务,然后在里面创建ASP.net页面。页面里写入的就是原来客户端需要的内容,直接就可以读取服务器了~很简单哪~开心!