简体   繁体   English

Visual Studio 无法连接到 Windows 上的 Nuget.org 7

[英]Visual Studio cannot connect to Nuget.org on Windows 7

I'm using Windows 7 x64 and recently Visual Studio stopped working with nuget.org.我正在使用 Windows 7 x64,最近 Visual Studio 停止使用 nuget.org。 Now it reports this error: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.现在报这个错误:无法从传输连接中读取数据:一个现有的连接被远程主机强行关闭。

I searched, tried everything from this similar topic: nuget.org: Unable to load the service index我搜索,尝试了这个类似主题的所有内容:nuget.org:无法加载服务索引

I read this article about Deprecating TLS 1.0 and 1.1 on NuGet.org: https://devblogs.microsoft.com/nuget/deprecating-tls-1-0-and-1-1-on-nuget-org/#ensuring-your-system-uses-tls-1-2我在 NuGet.org 上阅读了有关弃用 TLS 1.0 和 1.1 的文章: https://devblogs.microsoft.com/nuget/deprecating-tls-1-0-and-1-1-on-nuget-org/#ensuring-你的系统使用-tls-1-2

I ensured my system has kb2533552 и kb3140245 installed and also checked the necessary values exist in the registry "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client"我确保我的系统安装了 kb2533552 和 kb3140245 并检查了注册表“HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client”中存在的必要值

Still, after all this I am unable to use the Package Manager.尽管如此,毕竟我无法使用 Package 管理器。 I can access https://apiint.nugettest.org/v3-index/index.json from the browser, but I cannot make the following c# code work - it still throws an exception:我可以从浏览器访问https://apiint.nugettest.org/v3-index/index.json ,但我无法使以下 c# 代码工作 - 它仍然抛出异常

var client = new HttpClient();
string uri = "https://apiint.nugettest.org/v3-index/index.json";
var response = await client.GetAsync(uri);
string msg = "If you see this, your machine has no TLS/SSL issues with nuget.org";
Console.WriteLine(msg);

I had the same problem.我有同样的问题。 I was also unable to check for updates in the extensions and updates dialog.我也无法在扩展和更新对话框中检查更新。

It started working again when I added the following cipher suites to the machine and rebooted:当我将以下密码套件添加到机器并重新启动时,它再次开始工作:

TLS_DHE_RSA_WITH_AES_256_GCM_SHA384,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384 TLS_DHE_RSA_WITH_AES_256_GCM_SHA384,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法找到包 ***。 源中不存在具有此 ID 的包:“Local Nuget”、Microsoft Visual Studio 离线包、nuget.org - Unable to find package ***. No packages exist with this id in source(s): "Local Nuget", Microsoft Visual Studio Offline Packages, nuget.org 错误 NU1101:无法找到包 ''。 源中不存在具有此 ID 的包:Microsoft Visual Studio 离线包,nuget.org - error NU1101: Unable to find package ''. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, nuget.org nuget.org上的源无法访问? - The source at nuget.org is unreachable? Visual Studio NuGet无法还原包 - Visual Studio NuGet Cannot Restore Packages 将 nuget 包从 VSTS 推送到 nuget.org 时忽略重复项 - Ignore duplicates when pushing nuget package to nuget.org from VSTS 是否有一种自动的方法来生成NuGet包,准备从VS项目发布到nuget.org - Is there an automated way to generate NuGet package ready for publishing to nuget.org from VS project 即使我已经从 NuGet.config 中删除了提要,Jenkins 也会从 nuget.org 下载 nuget 包 - Jenkins downloads nuget packages from nuget.org even though I have removed the feed from NuGet.config 为什么在引用nuget之后,与nuget.org中提供的尺寸信息相比,我打包的工具的尺寸增加了更多? - Why after referencing nuget, my packed tool size increased much more comparing with size info provided in nuget.org? Visual Studio 2015更新3无法读取NuGet程序包 - Visual Studio 2015 update 3 cannot read NuGet package nuget 与视觉工作室社区 - nuget with visual studio community
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM