Visual Studio NuGet无法加载源的服务索引身份验证失败

js81xvg6  于 2022-11-17  发布在  其他
关注(0)|答案(2)|浏览(251)

由于某种原因,我今天无法通过Visual Studio连接到NuGet包管理器。

[nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json.
  An error occurred while sending the request.
  The underlying connection was closed: An unexpected error occurred on a send.
  Authentication failed because the remote party has closed the transport stream.

但我不能让它再次工作...我试过的东西。

TLS1.2客户端设置:

TLS1.2服务器设置:

操作系统:Windows Server 2012 R2,Visual Studio 2019
还在另一台Windows Server 2012R2机器上尝试了它,也出现了同样的问题
它仍然在我装有Windows 10的笔记本电脑上工作。
希望有人有办法。
谢谢

rjee0c15

rjee0c151#

有完全相同的问题,从https://github.com/microsoft/azure-devops-tls12运行脚本,并按照它的指示帮助我。在我的情况下,它生成了额外的脚本文件,运行后,重新启动pc nuget再次工作。

n3ipq98p

n3ipq98p2#

我也有同样的问题。
解决方案是按照here所述安装microsoft/artifacts-credprovider

Invoke-Expression "& { $(irm https://aka.ms/install-artifacts-credprovider.ps1) } -AddNetfx"

相关问题