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.NET1.1
Viewed 5936 times since Tue, May 1, 2012
My website session times out earlier than expected. Why?
Viewed 5455 times since Tue, May 1, 2012
About Azure Key Vault
Viewed 2379 times since Mon, Nov 2, 2020
How to Solve an Error Message "Validation of viewstate MAC failed"
Viewed 10243 times since Tue, Apr 2, 2013
Sample Code to Send email using ASP.NET 2
Viewed 10229 times since Tue, May 1, 2012
Do you allow custom COM components?
Viewed 3398 times since Tue, May 1, 2012
I am unable to renew my Let’s Encrypt SSL
Viewed 3122 times since Thu, Aug 23, 2018
My site is showing 500 Internal Server error message. What is wrong here?
Viewed 4300 times since Thu, May 3, 2012