The remote server returned an error: (407) Proxy Authentication Required.

Just a quick note… Several C# components support pulling from http endpoints directly. For example, the XDocument class in System.XML.Linq supports the Load method which takes a URL. If this throws a “The remote server returned an error: (407) Proxy Authentication Required.” error, then the likely cause is the proxy settings of the server (visible via Internet Explorer’s Options settings) is not being used.

To fix this, add the following in the application or web configuration file:

<configuration>
  <system.net>
    <defaultProxy useDefaultCredentials="true" />
  </system.net>
</configuration>
This entry was posted in C#, Uncategorized and tagged , . Bookmark the permalink.

5 Responses to The remote server returned an error: (407) Proxy Authentication Required.

  1. Appreciate the recommendation. Let me try itt out.

  2. sankar says:

    thank u it solved my problem

  3. sivakrishna.vanama says:

    Thanks ,solution is good.

  4. Yakin Shah says:

    Thank you very much it resolved my issue.

  5. kerim says:

    Thanks 😉

Leave a Reply

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