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

the remote server returned an error (407) proxy authentication required sharepoint
SharePoint deveopment training course

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.

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

About Bhawana Rathore

Hello Everyone!! I am Bhawana a SharePoint MVP and having about 8+ years of SharePoint experience as well as in .Net technologies . I have worked in all the versions of SharePoint from wss to Office 365. I have good exposure in Customization and Migration using Nintex, Metalogix tools . Now exploring more in SharePoint 2016 :) Hope here I can contribute and share my knowledge to the fullest. As I believe "There is no wealth like knowledge, and no poverty like ignorance"

View all posts by Bhawana Rathore →
  • 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