Nuget.Server v3.4.1.0 error pushing packages to the feed Method not allowed

Sergio Topete 16 Reputation points
2022-01-06T19:59:02.127+00:00

Here is the error:

c:\DoNotDelete>nuget.exe push C:\scripts\packages\package.nupkg APIkey -Source http://server/NuGetServer

Pushing package.nupkg to 'http://server/NuGetServer'...

PUT http://server/NuGetServer/
MethodNotAllowed http://server/NuGetServer/ 58ms
Response status code does not indicate success: 405 (Method Not Allowed).

The Nuget Server is running correctly without any problems so far, the issue is when trying to push a package using the command nuget.exe push.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,417 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 26,151 Reputation points Microsoft Vendor
    2022-01-07T03:34:16.603+00:00

    Hi @Sergio Topete ,

    Welcome to Microsoft Q&A!

    Starting with NuGet.Server 3.0.0, the URL for pushing packages was change to http://<domain>/nuget. Prior to the 3.0.0 release, the push URL was >http://<domain>/api/v2/package.

    Please check the config and path by referring to: Adding packages to the feed externally.

    By the way, for questions about NuGet.Server, it is recommended to report on: https://github.com/nuget/NuGetGallery/issues.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments