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!

I am getting 405 when trying to push from nuget



  • As in title - when I try to do nuget push, I am getting error 405 (methid not allowed) - any idea how to quickly solve it?

    Product: ProGet
    Version: 4.7.6



  • 405 is method not allowed. ProGet does not issue these, so it's likely that your proxy server is blocking it, or you have configured IIS in such a manner that it is rejecting the request (such as using WebDAV).



  • That's a very general answer. Could you extend it a bit? There is nothing in the setup how to configure IIS.
    I have got WebDAV enabled on the side.



  • ProGet is not returning the 405 message, it's something on your network or server that you've configured to interfere/intercept web requests before they are sent to ProGet software.

    Obviously I can't specifically tell you how to "un-configure" your server or network... but not enabling WebDAV would be a good start. It intercepts requests in this manner, as I mentioned in my earlier answer. If that doesn't do it, you'll need to keep investigating what is intercepting these requests.



  • I had this issue when pushing via PowerShell, and have resolved it by added the following in to the Web.config for ProGet Located C:\Program Files\ProGet\WebApp\Web.config

      <!--Add the following to the beginning of <system.webServer><modules>:-->
      <remove name="WebDAVModule" />
      <!--Add the following to the beginning of <system.webServer><handlers>:-->
      <remove name="WebDAV" />
    

    Save the file and retry



  • We have added these exclusions to the Web.config that we include with ProGet.


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation