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.
精彩评论