The remote server returned an error 407 Proxy Authentication Required error in Visual Studio 2015/2017 in SharePoint Online

In this SharePoint 2013 tutorial, we will discuss how to resolve the below issue which comes while running a console application using visual studio 2015/2017 to connect to a SharePoint Online site.

We were doing some SharePoint list operation using a console application using visual studio 2015. But while running the code we got the below exception in the ExecuteQuery method which says:

An unhandled exception of type ‘System.Net.WebException’ occurred in Systme.dll.

Additional information: The remote server returned an error: (407) Proxy Authentication Required. The full error looks like below:

The remote server returned an error 407 Proxy Authentication Required
The remote server returned an error 407 Proxy Authentication Required

The remote server returned an error 407 Proxy Authentication Required

To resolve the issue we have changed the proxy settings like below:

Go to internet options in IE and click on Connections tab -> LAN settings. And here do the below things.

  • Check Automatically detect settings
  • Uncheck Use automatic configuration script
  • Uncheck Use a proxy server for your LAN (These settings will not apply to dial-up or VPN connections).

Refer fig below:

The remote server returned an error 407 Proxy Authentication Required sharepoint
The remote server returned an error 407 Proxy Authentication Required sharepoint

You may like following SharePoint visual studio tutorials:

Hope this SharePoint tutorial helps to resolve The remote server returned an error 407 Proxy Authentication Required error which comes in SharePoint Online.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

  • it does not solve my issue. now the Error message change to “Unable to connect to the remote server” . let me know if you or anyone has face the same issue

  • >