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:

    <defaultProxy useDefaultCredentials="true">
      <proxy proxyaddress="http://proxyIPAdress:portNumber" usesystemdefault="True"/>


That's all. 
Happy coding :)


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