开发者

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 an开发者_JS百科y 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?


I have similar issue. I am using Visual Studio 2019. The problem started when I change my system password.

Sometimes clearing Nuget caches solve the issue.

In VS, Go to Tools > Options > NuGet Package Manager > Click on Clear All NuGet Caches(s)

If that does not solve the issue, then follow below steps.

Reset Nuget artifactory can resolve the issue. The way I resolved is as following:

If Control Panel is in Icon (Large or Small) mode

Go to Control Panel > Credential Manager > Click on Windows Credentials

If Control Panel is in Category mode

Go to Control Panel > User Accounts > Credential Manager > Click on Windows Credentials

On the expanded part find all nodes with VSCredentials_ prefix > Click on it > Click on Edit button > Update your current system password.

Restart all Visual Studio instances and clear temp files (C:\Users\Home\AppData\Local\Temp).


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?


Have a look at this discussion:

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

and the solution i used:

http://blog.rthand.com/post/2011/08/26/Fixing-combination-of-NuGet-and-Team-Foundation-in-workgroup-configuration-401-Unauthorized.aspx


I found the company I worked for was blocking https://visualstudiogallery.msdn.microsoft.com/services/dev12/extension.svc. When they unblocked it the problem was solved.


The problem cropped up with me when I was upgrading my application for the .Net Framework 4.5.2. The application was an old one, using TFS 2010, and so the answer surprised me. First I got in touch with NuGet Support via email on the NuGet website. I was surprised how quickly they replied. They referred me to this link.

http://www.xavierdecoster.com/migrate-away-from-msbuild-based-nuget-package-restore

It didn't look like it had the solution, but I found it did. My NuGet configuration was out of date and I had to change it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜