一位同事在使用 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),但没有任何效果。
知道我应该看哪里吗?
(我确实找到了这个问题,但它似乎不适用
最佳答案
试试这些:
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/