NuGet push to local server returns (405) Method Not Allowed (in Win8)

Topics: General
Dec 19, 2012 at 10:25 AM

I have TeamCity 7.1.x installed on an old laptop to assess its suitability to replace CC.NET. I've enabled NuGet Server in TeamCity with the objective of publishing a package to a local NuGet repository (hosted in TC).

So far, I can 

  • get source from SVN
  • compile source
  • create a NuGet package

The next step, publishing the package is failing with the following error in the build log:

[22:36:50][push] NuGet command: C:\BuildAgent\tools\NuGet.CommandLine.2.2.0.nupkg\tools\NuGet.exe push C:\BuildAgent\work\71bda74dd056fbeb\Build\Release\Tools.ResourceHandler.3.12.6.25.nupkg %%teamcity_nuget_api_key_xxxxxxxxxxxxxx%% -Source http://localhost/guestAuth/app/nuget/v1/FeedService.svc/
[22:36:50][push] Starting: C:\BuildAgent\temp\agentTmp\custom_script6691888838937431990.cmd
[22:36:50][push] in directory: C:\BuildAgent\work\71bda74dd056fbeb\Build\Release
[22:36:50][push] Pushing Tools.ResourceHandler 3.12.6.25 to 'http://localhost/guestAuth/app/nuget/v1/FeedService.svc/'...
[22:36:50][push] Failed to process request. 'Method Not Allowed'. 
[22:36:50][push] The remote server returned an error: (405) Method Not Allowed..
[22:36:50][push] Process exited with code 1

I have read item 1789 and tried the workaround without success. (This is on a Win8 Enterprise workstation.)

Others appear to have similar problems. Is there a solution to this, or am I doing something wrong?

Developer
Dec 19, 2012 at 6:29 PM

Can you change the source value to http://localhost/guestAuth/app/nuget/v1/Package? 

Dec 20, 2012 at 9:09 AM

No, I can't. Admin password problems (in a separate question).

However, I get the impression from this blog post that I don't actually need the Publish step, when I'm using the TeamCity NuGet server. Is that correct?