Visual Studio 2015 - 连接到 Visual Studio 库以获取扩展和更新时出现 Visual Studio 库错误 [英] Visual Studio 2015 - Visual Studio Gallery Error while connecting to Visual Studio gallery for extensions and updates

查看:23
本文介绍了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.

这篇关于Visual Studio 2015 - 连接到 Visual Studio 库以获取扩展和更新时出现 Visual Studio 库错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆