Nuget无法为源身份验证的服务索引失败
由于今天由于某种原因,我无法通过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.
但是我不能让它再次工作... 我尝试的东西。
- Delete NuGet.config
- Clear NuGet cache
- Disable TLS1.0 and TLS1.1 explicitly
- Enabled TLS1.2 explicitly
- followed the manual from nuget at
- 不同的Visual Studios
- 更新到最新的Visual Studio 2019,
- 尝试了1.0、1.1和1.2的Regedit中不同的TLS设置。我还没有TLS1.3部分。
- 我可以浏览到 https://api.nuget.org/v3/index.json 使用Chrome
规格: Windows Server 2012R2,Visual Studio 2019
还在其他Windows Server 2012R2机器上尝试了它,并且
与Windows 10一起在我的笔记本电脑上工作。
希望有人有一个想法。
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我遇到了同样的问题。
解决方案是安装 Microsoft/artifacts-credprovider 如该页面上所述。
I had the same problem.
The solution was to install the microsoft/artifacts-credprovider as mentioned on that page.
遇到了完全相同的问题,是从按照它的指示对我有所帮助。
就我而言,它生成了其他脚本文件,在运行该文件并重新列出PC Nuget再次工作。
Had exactly the same problem, running script from https://github.com/microsoft/azure-devops-tls12 and following instructions from it helped me.
In my case it generated additional script file, after running that and restaring pc nuget was working once again.
经典原因之一...
可能的问题:凭证经理中的陈旧文物
您已经在凭据管理器中为您的文物节省了凭据。如果您的系统/SSO凭据最近发生了变化,则会发生这种情况。
解决方案:更新/从凭据管理器中删除保存的凭据
转到Windows =>凭证管理器=> Windows凭据=>通用凭证=> [与文物相关的凭证] =>消除。
当您从Visual Studio重建时,它将再次要求新的证书。无论是要保存还是每次添加。
凭证管理器 - [
]
在vs [
]
one of the classic reason...
Possible Problem: Stale Artifactory Credentials in Credential Manager
You have saved credentials for your artifactory in credential manager. If your system/SSO credentials changed recently then this will happen.
Solution: Update/Remove Saved credentials from Credentials Manager
Go to Windows => Credentials manager => Windows Credentials => Generic Credentials => [Artifactory related Credentials] => Remove.
When you rebuild from visual studio it will again ask for fresh credentials. It's upto you whether want to save or add every time.
Credential manager - [
]
Enter credentials after rebuild in VS [
]