发生错误:\ n无法连接到远程服务器 [英] Error occured:\nUnable to connect to the remote server

查看:113
本文介绍了发生错误:\ n无法连接到远程服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Nuget Package Manager来安装YoutubeExtractor,但我一直收到相同的错误错误"无法连接

I am trying to use Nuget Package Manager to install YoutubeExtractor but I keep getting the same error error "Unable to connect

到远程服务器"。如果我尝试使用包管理器控制台,我会收到此错误

to the remote server". If I try to use the package manager console, I get this error

FullyQualifiedErrorId:NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

什么可能是问题?

我使用的是Visual Studio 2015

I am using Visual Studio 2015

推荐答案

在Visual Studio中打开工具 - >选项 - > NuGet包管理器 - >包源。

In Visual Studio open Tools -> Options -> NuGet Package Manager -> Package Sources.

在那里,您将看到它尝试连接的服务器的地址。我有nuget.org指向
https://api.nuget.org/v3/index.json和Microsoft和.NET指向
https://www.nuget.org / api / v2 / curated-feeds / microsoftdotnet /。 将您的地址复制到浏览器并确保它能够在那里导航(您获得一段XML或JSON)。
如果浏览器无法访问该地址,则Visual Studio也无法访问该地址。这意味着它在网络中被阻止,或者您配置了错误的地址。

There you will see the address of the server(s) that it tries to connect to. I have nuget.org pointing to https://api.nuget.org/v3/index.json and Microsoft and .NET pointing to https://www.nuget.org/api/v2/curated-feeds/microsoftdotnet/. Copy your address to a Browser and make sure that it is able to navigate there (you get back a piece of XML or JSON). If the browser is incapable of reaching the address, then Visual Studio will also not be able to reach it. This means that it's either blocked in your network, or that you have configured the wrong address.


这篇关于发生错误:\ n无法连接到远程服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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