How to specify proxy credentials in web.config

If you need to configure a website to access a webservice etc. which is deployed on another machine vie a proxy, you just need to update your web projects web.config file as shown below:

<configuration>
  ...
  <!--<system.net>
    <defaultProxy useDefaultCredentials="true">
      <proxy proxyaddress="http://proxyIPAdress:portNumber" usesystemdefault="True"/>
    </defaultProxy>
  </system.net>-->
  ...

</configuration>

That's all. 
Happy coding :)

Comments

Popular posts from this blog

Solution for "Can not obtain Oracle client information from registry"

Solution for the fault: "System.Diagnostics.Process.Start is not working on IIS, but working on ASP.NET Development Server"

Getting Umbraco Content - IPublishedContent vs IContent vs Node vs Document