Symptoms
When using a PUT HTTP method in an application, one of the following errors is shown:
405 - HTTP verb used to access this page is not allowed.
HTTP Error 405.0 - Method Not Allowed
Cause
The WebDAV handler conflicts with PHP/.NET Core handler.
Resolution
Disable the WebDAV module and handler and its headers from the website configuration:
-
Open the domain's web.config file at Domains > example.com > File Manager.
-
Find the section
<system.webServer>
and add the following content under it:<system.webServer>
<modules>
<remove name="WebDAVModule" />
</modules>
<handlers>
<remove name="WebDAV" />
</handlers>