“405 method not allowed” in IIS7.5 for “PUT” method

后端 未结 20 2040
情深已故
情深已故 2020-11-28 02:15

I use WebClient type to upload *.cab files to my server. On the server side, I registered a HTTP handler for *.cab file with the PUT method as below:



        
相关标签:
20条回答
  • 2020-11-28 03:11

    I tried most of the answers and unfortunately, none of them worked in completion.

    Here is what worked for me. There are 3 things to do to the site you want PUT for (select the site) :

    1. Open WebDav Authoring Rules and then select Disable WebDAV option present on the right bar.

    2. Select Modules, find the WebDAV Module and remove it.

    3. Select HandlerMapping, find the WebDAVHandler and remove it.

    Restart IIS.

    0 讨论(0)
  • I was using Angular 8 and was .NET core API. I add the following in my service web.config file. That resolve my error.

    <system.webServer>
      <modules runAllManagedModulesForAllRequests="false">
        <remove name="WebDAVModule" />
      </modules>
    </system.webServer>
    
    0 讨论(0)
提交回复
热议问题