【问题标题】:NuGet Unable to load the service index for source Authentication failedNuGet 无法加载源身份验证的服务索引失败
【发布时间】:2022-10-17 16:31:03
【问题描述】:

从今天开始,由于某种原因,我无法通过 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 服务器 2012R2、Visual Studio 2019

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

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

希望有人有想法。

谢谢

【问题讨论】:

    标签: visual-studio nuget tls1.2


    【解决方案1】:

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

    【讨论】:

    • 是的,谢谢!奇怪的是我在搜索这么多时找不到这个脚本......
    【解决方案2】:

    我有同样的问题。

    解决方案是安装microsoft/artifacts-credprovider 提到的here

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

    【讨论】:

      猜你喜欢
      • 2018-09-21
      • 1970-01-01
      • 2018-01-08
      • 2019-04-25
      • 2018-08-12
      • 1970-01-01
      • 2020-10-30
      • 2019-03-10
      • 2017-05-24
      相关资源
      最近更新 更多