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
Domain Name Server (DNS) Amplification Attack
Viewed 9587 times since Wed, Oct 15, 2014
I cannot see my website. What should I do?
Viewed 3935 times since Thu, May 3, 2012
My website session times out earlier than expected. Why?
Viewed 5067 times since Tue, May 1, 2012
How do I query MySQL database in ASP.NET?
Viewed 12691 times since Tue, May 1, 2012
How do I send an email from my ASP.NET website by using SMTP Authentication?
Viewed 6615 times since Tue, May 1, 2012
I receive this error message: "Directory Listing Denied. This Virtual Directory does not allow contents to be listed."
Viewed 10743 times since Mon, Apr 30, 2012
How do I query MySQL Database in PHP ?
Viewed 3497 times since Tue, May 1, 2012
Sample Code to Send email using ASP.NET 2
Viewed 9833 times since Tue, May 1, 2012
I get an error Server.CreateObject Failed when I try to use CDONTs. What can I do?
Viewed 3026 times since Tue, May 1, 2012