开发者

Error when accessing webservice through proxy internet connection

开发者 https://www.devze.com 2023-01-31 13:28 出处:网络
I have created a .net windows application ,in that i need to get information from server via webservice. if my internet connection through 开发者_开发技巧proxy then thrown error ERROR: Could not resol

I have created a .net windows application ,in that i need to get information from server via webservice. if my internet connection through 开发者_开发技巧proxy then thrown error ERROR: Could not resolve host: ws.audioscrobbler.com; No data record of requested type .if its direct connection everything work fine.Please help me to resolve this.


Are you actually using a WebProxy instance in the scenario where you need to connect through a Proxy server?

You can not simply expect to be using the same logic in the scenario where the server is behind a proxy server and the scenario where it is not. You need to allow the user to configure Proxy settings and act accordingly when a Proxy server is configured.

0

精彩评论

暂无评论...
验证码 换一张
取 消