visual-studio - VS2019 在线扩展列表为空。然后满。然后又空了

标签 visual-studio visual-studio-extensions

一位同事在使用 Visual Studio 时遇到了一个奇怪的问题。在我们进行 Teams 通话时,我真的在现场观看这一切,她分享了她的屏幕。

在 Visual Studio 中她去

扩展 >> 管理扩展 >> 在线

并看到这个错误信息

A connection to the server could not be established because the following error(s) occurred:

An error occurred while sending the request. The underlying connection was closed. An unexpected error occurred on a send. Unable to read data from the transport connection. An existing connection was forcibly closed by the remote host.

这是最奇怪的部分。她会在 Visual Studio 中的其他地方单击,不做任何更改(例如,我们正在查看工具 >> 选项 >> 帐户之类的东西,但什么也没做)然后突然回来所有的扩展都会出现。

然后,她会离开并返回,他们会再次消失并显示相同的错误消息

关于为什么会发生这种情况,我们似乎找不到任何押韵或理由。我们尝试禁用她拥有的所有防火墙 (Windows Defender),但没有任何效果。

知道我应该看哪里吗?

(我确实找到了这个问题,但它似乎不适用

vs2017 cannot browse online extensions )

最佳答案

试试这些:

1)关闭VS,删除文件夹C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\16.0_xxx,然后重启VS再次测试。

2) 不确定是不是DNS的问题。请check this document .或者您可以尝试修复您的 DNS。

3) 关闭 VS,打开 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe.config 和然后添加这些:

<system.net>
  <defaultProxy useDefaultCredentials="true" enabled="true">
    <proxy usesystemdefault="true" bypassonlocal="true" />
  </defaultProxy>
  <settings>
    <ipv6 enabled="true"/>
    <servicePointManager expect100Continue="false" />
  </settings>
</system.net>

然后,保存,重启VS再次测试。

4) VS2019有新版本更新。

关于visual-studio - VS2019 在线扩展列表为空。然后满。然后又空了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66956326/

相关文章:

visual-studio - VS 扩展如何针对 Microsoft.VisualStudio.* 引用的多个版本?

c# - 如何将 Visual Studio 2013 项目降级为 Visual Studio 2008 项目?

c++ - CUDA 链接错误 Visual Studio 2008

visual-studio - 如何在不使用 ReSharper 的情况下突出显示 Visual Studio 中的事件行?

c# - VSIX(Visual Studio 扩展) "Fonts and Colors"更改事件

visual-studio-2010 - VS2012下开发VS2010的VSIX?

visual-studio - 找不到扩展。请确保已安装扩展

c++ - 链接 DLL 时的命令行错误

visual-studio - iPhone 模拟器在 Visual Studio for Mac 中的 Debug模式下不显示。 Xamarin.IOS

visual-studio-extensions - 如何降级 Visual Studio 扩展?