以前把webservice放在服务器上用的动态配置,通过修改web.config文件来设置url
但是现在出现了这个错误,不知道是什么原因
The underlying connection was closed: The remote name could not be resolved.
我到msdn上找到一篇文章但不知道怎么解决!请高手详细说明一下!
...全文
1738打赏收藏
一个严重的webservice的问题!请高手来帮忙!
以前把webservice放在服务器上用的动态配置,通过修改web.config文件来设置url 但是现在出现了这个错误,不知道是什么原因 The underlying connection was closed: The remote name could not be resolved. 我到msdn上找到一篇文章但不知道怎么解决!请高手详细说明一下!
The underlying connection was closed: The remote name could not be resolved
还有一种可能行,你的webservice在internet上,而你的客户是通过代理服务器上网的,这样也有可能放回这个错误,你可以在你的webservice代理类构造函数中配置它的代理服务器信息.
System.Net.WebProxy myProxy
=new System.Net.WebProxy("192.168.0.1",8080);
this.Proxy=myProxy;