Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Why am I getting a "405 Method Not Allowed" when I try to do a nuget.exe push?



  • We just installed a licensed version of the server and we have it running on IIS8 (Windows Server 2012 R2), we have ONLY Windows Authentication set up, and I've got multiple feeds planned. I created a custom Task that has the following permissions to the Feed:

    Feeds_AcceptPackagePromotions, Feeds_AddPackage, Feeds_DeletePackage, Feeds_DownloadPackage, Feeds_OverwritePackage, Feeds_PullPackage, Feeds_ViewFeed

    I've also set up an API Key at http://MyProGetServer/administration/api-keys
    That API Key has Package promotion & Feed API checked on

    The Feed has the NuGet API Key set to the API Key I created in the above line

    When I do:
    nuget.exe push "C:\mynugetpackage.nupkg" TheAPIKeyValue -Source http://MyProGetServer/nuget/MyTargetFeed/

    I get the following response:
    Failed to process request. 'Method Not Allowed'.
    The remote server returned an error: (405) Method Not Allowed..

    Am I missing something?

    Product: ProGet
    Version: 4.7.13



  • ProGet will not give this error code, so it's coming from another tool/service in between NuGet.exe and ProGet software.

    Please disable WebDAV, and any other things sitting in front of the ProGet server that would issue a 405 before relaying the request to ProGet.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation