Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuget Package Manager not working in VS Express 2013

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

like image 541
Mark Avatar asked Nov 12 '13 10:11

Mark


1 Answers

I had the same problem. I was able to connect to NuGet from VS2013 if I select "Run As Administrator" when launching VS.

like image 145
David Avatar answered Nov 15 '22 10:11

David