Reputation: 7818
I'm using Visual Studio Express 2013.
When trying to install a nuget package, I am getting an error (no error when trying in 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
Internet is working (I have Vs 2012 working and installing nuget packages at the same time - with no issues).
VS -> Tools -> Extensions and Updates says: 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
- when I click that, it goes back to the "retrieving information" loop.
Does anyone have any ideas how to resolve this?
Thank you, Mark
Upvotes: 6
Views: 6720
Reputation: 443
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.
Upvotes: 0
Reputation: 31
I had the same problem. I was able to connect to NuGet from VS2013 if I select "Run As Administrator" when launching VS.
Upvotes: 3