Issues with NuGet Push

Feb 14, 2012 at 7:12 PM
Edited Feb 14, 2012 at 7:20 PM

I have NuGet Gallery setup and working from a website perspective but from a NuGet push perspective things are not working.

 

The relevant portion of my batch file is:

    set packageSource=http://dev-server/nuget/api/v2/package/
    set apiKey=realKeyHere

    NuGet.exe push TelecomService.Shared.%version%.nupkg %apiKey% -src %packageSource%

 

The output is:

    Pushing TelecomService.Shared 1.0 to 'http://dev-server/nuget/api/v2/package/'...
    The underlying connection was closed: The connection was closed unexpectedly.

 

In fiddler I see:

404:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
  <code></code>
  <message xml:lang="en-US">Resource not found for the segment 'package'.</message>
</error>

 

and 504:

ReadResponse() failed: The server did not return a response for this request.                    

 

Now if I change packageSource to be:

    set packageSource=http://dev-server/nuget/

 

Then I get 200's / OK but the output indicates failed to process request and the package is not uploaded. HTML is returned that just looks like the nuget gallery default home page.

    Pushing TelecomService.Shared 1.0 to 'http://dev-server/nuget/'...
    Failed to process request. 'OK'.

 

I'm assuming there is something I need to do in IIS / my web server to resolve this. I'm running on IIS 7.5 on Windows Server 2008 R2. I did setup the .nuget mime type and configure the IIS app to run in a custom app pool, .net 4 fx, integrated pipeline running under network service.

 

Ideas? Thanks

Feb 14, 2012 at 7:26 PM

The NuGet gallery was rewritten recently and is hosted on https://github.com/NuGet/NuGetGallery/. Afaik, this project is no longer being maintained and we've made some feed changes \ client changes that might no longer work with this implementation of the gallery.

Feb 14, 2012 at 7:27 PM

I downloaded the code from GitHub but wasn't thinking when I posted this discussion here. I'll move it. Thanks

Feb 14, 2012 at 7:29 PM

Created as https://github.com/NuGet/NuGetGallery/issues/409