.netnugetnuget-package

NuGet: remote server returned an Error(403) Forbidden


Whenever i attempt to install a package i get this error

remote server returned an Error(403) Forbidden

I can use other commands, such as get-package -ListAvailable, and discover whether there are any updates for installed packages but cannot actually install anything via Nuget.

This is the same for the command line and the package manager GUI.

I'm using Visual Web Developer 2010.

I'm in a corporate environment too, which i suspect is the chief issue.

Any possible pointers?


Solution

  • Are you using TFS? It seems to cause weird problems, there's info in the forums about removing a DLL to workaround it:

    http://nuget.codeplex.com/discussions/246381

    If it's not that - is it possible you have a proxy that NuGet isn't authenticating with properly? There's an issue in the bugtracker about this:

    http://nupack.codeplex.com/workitem/231

    Looks like it may have been fixed recently (though not sure if it's made it into a released build yet).

    Failing that, could you capture the exact request with Fiddler and post details here?