I'm setting up a simple NuGet server in my environment (while we wait for the TeamCity server to get reconfigured to host packages) and having problems publishing packages to it.
Followed the steps to setup a repository from here:
Everything works fine. If I manually copy a package into the packages folder it shows up in the feed.
However when I go to publish a package with the command line it asks me to provide credentials for the site.
C:\packages>nuget push MyPackage.1.0.0.nupkg -s http://myserver/nuget APIKEY
Pushing MyPackage 1.0.0 to 'http://myserver/nuget'...
Please provide credentials for: http://myserver/nuget/
The website is an IIS 7.5 site running under the Default Web Site (as an IIS application). Server is 2008 R2. Application Pool is running under ApplicationPoolIdentity (the built-in account). I've set the DefaultAppPool account to have write access to the
Packages folder (which is underneath the site under wwwroot).
I'm not familiar with ApplicationPoolIdentity (a dropdown value in the bindings for the site) vs. DefaultAppPool (a group or user that was already set in the security for the folder). Are they the same? There is no account named ApplicationPoolIdentity or
DefaultAppPool on the server so short of changing it to run under a domain account I don't know.
Hoping someone has insight. I would like to have remote users push packages up but stalled on this so for now I have to copy them manually.