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
How do I redirect a subdomain to a subdirectory?
Viewed 4282 times since Tue, May 1, 2012
Sample Code to Send email using ASP.NET 2
Viewed 9943 times since Tue, May 1, 2012
Domain Name Server (DNS) Amplification Attack
Viewed 9718 times since Wed, Oct 15, 2014
How can I enable ASP.NET 3.5 on your Control Panel?
Viewed 4076 times since Wed, May 2, 2012
I receive this error message: "Directory Listing Denied. This Virtual Directory does not allow contents to be listed."
Viewed 10884 times since Mon, Apr 30, 2012
How to solve the Let’s Encrypt SSL on ASP.NET Core
Viewed 9842 times since Mon, Jul 17, 2017
How do I query MySQL Database in PHP ?
Viewed 3607 times since Tue, May 1, 2012
Do you allow custom COM components?
Viewed 3099 times since Tue, May 1, 2012