Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 - Visual Studio Gallery Error while connecting to Visual Studio gallery for extensions and updates

When trying to get a visual studio extension from Extensions & Updates, I get the following error:-

An error occurred while making the HTTP request to visualstudiogallery.msdn.microsoft.com/Services/VStudio/Extension.svc

I can see that few others have faced this problem, but I can't see any solution anywhere. Also, a similar error occurs when trying to fetch nuget package.

PS: The message is a bit misleading as with svcutil, I can create a proxy using the same address:- svcutil https://visualstudiogallery.msdn.microsoft.com/Services/VStudio/Extension.svc

like image 308
Shivakant Upadhyay Avatar asked Sep 18 '15 10:09

Shivakant Upadhyay


1 Answers

This usually happens when you are behind a proxy.

Try to close Visual Studio and update the devenv.exe.config file located in
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE and search for the system.net node. If it isn't there then add it, otherwise change it to look like this:

<system.net>
  <defaultProxy enabled="true" useDefaultCredentials="true">
    <proxy usesystemdefault="true" bypassonlocal="true" />
  </defaultProxy>
</system.net>

This will cause Visual Studio to use the system defined proxy and use your credentials if the proxy requires you to logon.

like image 113
Marc Selis Avatar answered Oct 09 '22 08:10

Marc Selis