Search code examples
visual-studio-2015nugetnuget-packagenuget-package-restore

Nuget throwing 401 unauthorized error for no apparent reason


I'm using VS2015 and Nuget to install external packages. Everything was working fine until today when Nuget started spitting out a:

Response status code does not indicate success: 401 (Unauthorized)

I tried looking around for a solution, everyone is suggesting to provide again the credentials, either from the console or the UI under tools -> nuget package manager -> manage nuget packages for solution

No luck, what's going on here?


Solution

  • Solved, I had to re-add my NuGet repository specifying username and password. For some reason VS2015 lost the credentials