刚才贴错了,那是TCP的客户端-___-b
这个才是开服务器的:
HttpServerChannel hts = new HttpServerChannel(8228);
ChannelServices.RegisterChannel(hts);
RemotingConfiguration.RegisterWellKnownServiceType( typeof(HelloWorldClass), "HelloWorld", WellKnownObjectMode.Singleton );

解决方案 »

  1.   

    WinApp,Console和Web浏览器连接上服务器读取资料的范例都有,且很简单http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconremotingexamples.asp
      

  2.   

    就是找不到哪个例子有Web浏览器啊……救命!
      

  3.   

    问题解决了,在这里Post一下和大家分享:
    开一个ASP的Web服务,然后在里面创建ASP.net页面。页面里写入的就是原来客户端需要的内容,直接就可以读取服务器了~很简单哪~开心!