错误描述:
Could not connect to net.tcp://192.168.4.206:4510/Server. The connection attempt lasted for a time span of 00:00:00. TCP error code 10013: 试图以其访问权限所禁止的方式访问套接字。. This could be due to attempting to access a service in a cross-domain way while the service is not configured for cross-domain access. You may need to contact the owner of the service to expose a sockets cross-domain policy over HTTP and host the service in the allowed sockets port range 4502-4534.
原因是:跨域访问所导致.
经检查,一开始丢在C:\Inetpub\wwwroot下的ClientAccessPolicy.xml文件不能被读取到,原因是80端口的网站被指向于非"wwwroot"之下的其它网站目录下,为了能讯速解决此办法,将ClientAccessPolicy.xml重新拷贝到80端口网站的根目录之下得以解决问题.