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>



Article ID: 317
Created On: Wed, Oct 24, 2018 at 9:46 PM
Last Updated On: Wed, Oct 24, 2018 at 9:46 PM
Authored by: ASPHostServer Administrator [asphostserver@gmail.com]

Online URL: http://faq.asphosthelpdesk.com/article.php?id=317