Unable to Install Packages with NuGet-500 Server Internal Error

It makes no sense to me. NuGet worked fine, but now it throws a server error when I try to install packages. I uninstall and reinstall NuGet with the latter, but still no luck.

PM> Install-Package EntityFramework
Install-Package : The remote server returned an error: (500) Internal Server Error.
At line:1 char:16
+ Install-Package <<<<  EntityFramework
    + CategoryInfo          : NotSpecified: (:) [Install-Package], WebException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

Has anyone seen anything like this? Thank.

I pointed to https://nuget.org/api/v2/that seems alive ...

+5
source share
4 answers

From NuGetTeam (@nuget) to Twitter https://twitter.com/#!/nuget

We are investigating the problem on the NuGet gallery servers. We will be soon. We apologize for the inconvenience.

+3
source

It happened to me.

Try the following:

  • Launch VS in administrator mode.
  • NuGet Tools- > Extension Manager ( VS 2015)
  • %AppData%\NuGet C:\Users\[YourUsername]\AppData\Roaming\NuGet
  • NuGet
+7

Try again, it works here now.

+2
source

Visual Studio sometimes has this error. Try restarting your visual studio (I have 2019). If this still does not fix, restore your VS installation. This is definitely for future viewers, as I also had this problem, and it was fixed by restarting VS

0
source

All Articles