Home » Categories » Multiple Categories

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>

Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Sample Code to Send email using ASP.NET 2
Viewed 10299 times since Tue, May 1, 2012
How do I redirect a subdomain to a subdirectory?
Viewed 4665 times since Tue, May 1, 2012
How do I send an email from my ASP.NET website by using SMTP Authentication?
Viewed 7159 times since Tue, May 1, 2012
How to Solve an Error Message "Validation of viewstate MAC failed"
Viewed 10421 times since Tue, Apr 2, 2013
How to solve the Let’s Encrypt SSL on ASP.NET Core
Viewed 10407 times since Mon, Jul 17, 2017