Do your Web Parts need to access internet sites using a proxy?

I discovered today how to configure your web applications to use a proxy server for accessing internet sites. I had not thought about this until I deployed a site with a web part that retrieves information from the internet such as weather information, stock information, etc.


If you are facing the same issue, then your answer lies in the web.config file the Web Application that requires internet access.


You need to edit the web.config file and at the bottom of the file replace:


 <defaultProxy>
      <proxy autoDetect=”true” />
 </defaultProxy>


by:


<defaultProxy>
    <proxy usesystemdefault=”False” proxyaddress=”http://myproxyserver:8080″ bypassonlocal=”True” />
</defaultProxy>


Now save the file and you’re good to go !


Simple trick this time, but it is still good to know. [8-|]

Leave a Reply

Your email address will not be published. Required fields are marked *