Visual Studio 2015 - 连接到 Visual Studio 库以获取扩展和更新时出现 Visual Studio 库错误
尝试从 Extensions & 获取 Visual Studio 扩展时更新,我收到以下错误:-
When trying to get a visual studio extension from Extensions & Updates, I get the following error:-
向 visualstudiogallery.msdn.microsoft.com/Services/VStudio/Extension.svc 发出 HTTP 请求时出错
An error occurred while making the HTTP request to visualstudiogallery.msdn.microsoft.com/Services/VStudio/Extension.svc
我可以看到很少有人遇到过这个问题,但是我在任何地方都看不到任何解决方案.此外,尝试获取 nuget 包时也会发生类似的错误.
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:该消息与 svcutil 一样具有误导性,我可以使用相同的地址创建代理:-svcutil https://visualstudiogallery.msdn.microsoft.com/Services/VStudio/Extension.svc
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
这通常发生在代理背后.
This usually happens when you are behind a proxy.
尝试关闭 Visual Studio 并更新位于C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
并搜索 system.net
节点.如果它不存在,则添加它,否则将其更改为如下所示:
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>
这将导致 Visual Studio 使用系统定义的代理并在代理要求您登录时使用您的凭据.
This will cause Visual Studio to use the system defined proxy and use your credentials if the proxy requires you to logon.