Proxy Authorization Required

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here

The Proxy authorization required error generally occurs when users are connected to Visual Studio online resources through a proxy server, and the proxy server blocks the calls.

To correct this error, try one or more of the following steps:

  • Restart Visual Studio. A proxy authentication dialog box should appear. Enter your credentials in the dialog.

  • If the above step does not solve the problem, this may be because your proxy server does not prompt for credentials for http://go.microsoft.com addresses but does so for *.visualStudio.com addresses. For these servers, you need to add the following URLs to the allow list to unblock all sign-in scenarios in Visual Studio:

    • *.windows.net

    • *.microsoftonline.com

    • *.visualstudio.com

    • *.microsoft.com

    • *.live.com

  • You can remove the http://go.microsoft.com address from the allow list so that the proxy authentication dialog shows up for both the http://go.microsoft.com address and the server endpoints when Visual Studio is restarted.

  • If you want to use your default credentials with your proxy, do the following:

    1. Find devenv.exe.config (the devenv.exe configuration file) in: %ProgramFiles%\Microsoft Visual Studio 14.0\Common7\IDE (or %ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE).

    2. In the configuration file, find the <system.net> block, and add this code:

      <defaultProxy enabled="true" useDefaultCredentials="true">
          <proxy bypassonlocal="True" proxyaddress=" HYPERLINK "http://<yourproxy:port#" http://<yourproxy:port#>"/>
      </defaultProxy>
      

      Insert the correct proxy address for your network in proxyaddress="<http://<yourproxy:port#>.

  • Follow the instructions in this blog post to add code that allows you to use the proxy.