Monday, May 14, 2012

How to disable proxy server via web.config file

Sometimes you may need to do this because the web application which is running using an apppool ID, may have its Internet Explorer set to use Proxy. You can verify this by using the "Microsoft Network Monitor Tool".

The simplest & fool-proof way is to force disable proxy server via the web.config file.
Add this within the <configuration> element:
<system.net>
<defaultProxy>
<proxy usesystemdefault="False"/>
</defaultProxy>
</system.net>

1 comment:

  1. I tried this but it didn't work. Our web service connects to another web service but it it slow as it tries to find WPAD using NBNS. After a few of these time out then it tries DNS and then it finally works. Should the solution above only work for client settings or also for the web service connecting to another web service?

    ReplyDelete