6

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

qxg
  • 6,955
  • 1
  • 28
  • 36

1 Answers1

6

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.

ahsteele
  • 26,243
  • 28
  • 134
  • 248
Marc Selis
  • 833
  • 12
  • 17
  • I can confirm this works in VS2015 Pro; the only new part to add is the section. I don't have to do this at home, but at work this was necessary. Thanks! This was driving me nuts. – Matthew Kraus Mar 08 '16 at 19:54
  • 2
    I tried this but it doesn't work. I still get a timeout and I have no idea why. – magicandre1981 Apr 19 '16 at 15:35
  • Got the same problem on different networks. https://social.msdn.microsoft.com/Forums/vstudio/en-US/7ff56d2d-04c1-4df5-8776-df4fe806082e/unable-to-load-list-of-online-extentions-an-updates?forum=visualstudiogeneral – Gustav Dahl Apr 20 '16 at 09:27
  • I tried this solution and it broke the homepage (with news and videos). So without that node, my homepage work but I get timeouts on the gallery inside the Tools > Extensions menu – Mickael V. Apr 20 '16 at 10:11
  • 2
    This setting will only work when you're behind some kind of firewall and need a proxy server to connect to the internet. – Marc Selis Apr 25 '16 at 16:59