How to Solve the error: "405 - HTTP verb used to access this page is not allowed"?

This applies to anyone who uses REST service using ASP.NET Web API. When you try to send HttpDelete and HttpPut Request, you can occassionally see this error message:

405 - HTTP verb used to access this page is not allowed

To resolve this issue, you just need to add several lines on your code:

<system.webServer>  <modules>    <remove name="WebDAVModule" />  </modules>  <handlers>    <remove name="WebDAV" />  </handlers></system.webServer>

Posted by: ASPHostServer Administrator - Wed, Oct 24, 2018 at 9:46 PM. This article has been viewed 4282 times.
Online URL: http://faq.asphosthelpdesk.com/article.php?id=317