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

Gie*_*l83 10 visual-studio nuget tls1.2

从今天开始,由于某种原因,我无法通过 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.
Run Code Online (Sandbox Code Playgroud)

但我无法让它再次工作......我尝试过的事情。

TLS1.2 客户端设置: TLS1.2

TLS1.2 服务器设置: TLS1.2

规格:Windows Server 2012R2、Visual Studio 2019

还在不同的 Windows Server 2012R2 机器上尝试过,也出现同样的问题

它仍然可以在我的 Windows 10 笔记本电脑上运行。

希望有人有想法。

谢谢

R00*_*t3r 8

我有同样的问题。

解决方案是安装该页面上提到的microsoft/artifacts-credprovider 。

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


小智 3

遇到了完全相同的问题,从https://github.com/microsoft/azure-devops-tls12运行脚本并遵循其中的说明对我有所帮助。就我而言,它生成了额外的脚本文件,运行该文件并重新启动 pc nuget 后再次工作。