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

后端 未结 20 2173
情深已故
情深已故 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:02

    I had the same problem, with a RESTful API running on aspnet core.

    I didn't want to uninstall the WebDAV, and I tried most of the remedies described above. I tried to set the verbs="*" both on the site and on the server itself, but without success.

    What did the trick for me was the following:

    IIS Manager -> Sites -> MySite -> HandlerMappings -> aspNetCore -> Edit

    -> Request Restrictions -> Access -> None (it was Script).

    After that everything worked, even if I replaced the original WebDAV options.

提交回复
热议问题