Nuget 连接尝试失败“无法加载源的服务索引" [英] Nuget connection attempt failed "Unable to load the service index for source"

查看:26
本文介绍了Nuget 连接尝试失败“无法加载源的服务索引"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试连接到 Nuget 时,出现以下错误,然后无法连接:

While trying to connect to Nuget, I'm getting the error below, and then I am unable to connect:

[nuget.org] 无法加载源的服务索引https://api.nuget.org/v3/index.json.发送请求时发生错误.无法连接到远程服务器连接尝试失败,因为连接方在一段时间后没有正确响应,或建立连接失败,因为连接的主机未能响应 68.232.34.200:443

[nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json. An error occurred while sending the request. Unable to connect to the remote server A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 68.232.34.200:443

我可以在浏览器上访问 https://api.nuget.org/v3/index.json.

I am able to access https://api.nuget.org/v3/index.json on my browser.

这个问题不是重复的.其他答案不能解决我的问题.

This question is not a duplicate. The other answers don't solve my problem.

推荐答案

删除 %AppData%NuGetNuGet.Config 并重新启动 VS2019 对我有用.

Deleting the %AppData%NuGetNuGet.Config and restarting VS2019 worked for me.

类似于https://github.com/NuGet/Home/issues/3281

这篇关于Nuget 连接尝试失败“无法加载源的服务索引"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆