6

我正在使用 Visual Studio Express 2013。

尝试安装 nuget 包时,出现错误(在 2012 express 中尝试时没有错误):

PM> Install-Package AutoMapper
Install-Package : Unable to connect to the remote server
At line:1 char:16
+ Install-Package <<<<  AutoMapper
    + CategoryInfo          : NotSpecified: (:) [Install-Package], WebException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

互联网正在工作(我有 Vs 2012 工作并同时安装 nuget 包 - 没有问题)。

VS -> Tools -> Extensions and Updates 说:Cannot check for updates because the following error(s) occurred whil trying to contact the server: Unable to connect to the remote server - please click here to retry the request- 当我点击它时,它会回到“检索信息”循环。

有谁知道如何解决这个问题?

谢谢你,马克

4

2 回答 2

3

我有同样的问题。如果在启动 VS 时选择“以管理员身份运行”,我可以从 VS2013 连接到 NuGet。

于 2014-03-11T17:02:43.730 回答
0

I had this exact problem and it was solved by disabling the firewall. Later I enabled the firewall and checked the blocked programs and unblocked visual studio, which for some reason had been blocked.

于 2014-10-03T03:26:08.370 回答