Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Fix 401 Authentication Error when Publishing to Self-Hosted NuGet Server

I followed these instructions to host a NuGet Server (version 2.2.2) on our Intranet. It works great as far as listing the packages and retrieving them in VS 2012. But when I create a package using the Nuget Package Explorer and try to publish it I am prompted with a Windows Security dialog prompting for credentials. No matter what credentials I enter it keeps re-prompting me for a user name and password and returns a 401 authentication error. Why is the NuGet server prompting me for Windows credentials and how can I get rid of it? It only does this for publishing and nothing else.

like image 536
Kevin Junghans Avatar asked Jan 24 '13 21:01

Kevin Junghans


1 Answers

There are one more thing apart from permissions configuration for Packages folder. In my case I have to use URL like

http://<server>/<nuget_virtual_dir>/api/v2/package/ 

for pushing. It was the only solution in my case.

like image 143
Pavel Korsukov Avatar answered Oct 19 '22 16:10

Pavel Korsukov