Rectangle 27 0

You may find this SO answer helpful, as it covers how to configure credentials on a publishing workstation (or build server, but in either case it's accurate info.)

How to Fix 401 Authentication Error when Publishing to Self-Hosted NuG...

authentication nuget nuget-server
Rectangle 27 0

I think a found a solution (at least to my problems):

I gave up to the Nuget problem, and I focused in the ISS 401 error. Then I gave permissions to the user "IIS AppPool\DefaultAppPool" to the app's root (or your AppPool that use the app, in my case "ASP.NET v4.0"). Then it work like charm!.

How to Fix 401 Authentication Error when Publishing to Self-Hosted NuG...

authentication nuget nuget-server
Rectangle 27 0

When you use NuGet push you need to put /api/v2/package after the NuGet server URL (example http://myhost/myNuGetServer/api/v2/package)

If you use the NuGet user interface (NuGet Package Explorer) you need to put just the server url than URL (example http://myhost/myNuGetServer/)

Take care also of apikey configuration in Web.config and use it in NuGet push!

How to Fix 401 Authentication Error when Publishing to Self-Hosted NuG...

authentication nuget nuget-server
Rectangle 27 0

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

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

How to Fix 401 Authentication Error when Publishing to Self-Hosted NuG...

authentication nuget nuget-server