I recently set up my own NuGet server based on this article: https://docs.nuget.org/create/hosting-your-own-nuget-feeds
However, once I attempted to publish my NuGet packages, I received one error after the other:
After changing the Url slightly, I got this new error message:
When I ran the NuGet push command, I got a different error message:
In the end, I could not get the NuGet publish feature to work no matter what I tried, but fortunately I came across this article: http://stackoverflow.com/questions/20228184/pushing-to-private-nuget-feed-prompts-for-credentials
As it turns out, I needed to do 2 things:
To add security privileges, I did the following:
However, once I attempted to publish my NuGet packages, I received one error after the other:
After changing the Url slightly, I got this new error message:
When I ran the NuGet push command, I got a different error message:
In the end, I could not get the NuGet publish feature to work no matter what I tried, but fortunately I came across this article: http://stackoverflow.com/questions/20228184/pushing-to-private-nuget-feed-prompts-for-credentials
As it turns out, I needed to do 2 things:
- Make sure that my Url was in the following format: https://localhost/nuget (removing the extra /nuget from the end of the Url)
- I also needed to make sure I added security privileges to the NuGet folder!
To add security privileges, I did the following:
- Opened up IIS Manager and right-clicked on the NuGet application
- Opened up the Edit Permissions dialog
- Clicked on the Security tab
- Granted Modify/Full Control to both IUSR and IIS_IUSRS
- Clicked OK
That did the trick for me and I was able to successfully push my NuGet packages to my server!
No comments:
Post a Comment