Web API issues
- Less than a minute to read
Web API methods return the 405 Method Not Allowed error
When you use PUT or DELETE requests, you may obtain the 405 Method Not Allowed error. At the same time, POST and GET requests may work properly.
Solution
You can disable WebDAV in the web.config file. Add the following code to the <system.webServer>
node.
<modules>
<remove name="WebDAVModule" />
</modules>
<handlers>
<remove name="WebDAV" />
</handlers>
Alternatively, you can remove the WebDAV Publishing role from your server.