ASP.NET web API HTTP Delete 405 Method Not Allowed
asp.net-web-api
Solution
I had the same problem. Adding the below code to your web.config should fix the problem under the `system.webserver` section:
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule"/>
Problem
I already worked with web API and had a lot of problems like posting multiple parameters. I upgraded to WebApi2 to use routing attributes and now have problems like: `"message":"The requested resource does not support http method 'DELETE'."` I spent all day searching Stack Overflow and the web to solve the problem: - Removed `webdav` - In `http protocol` allow all `get,put,post,delete` - Added the `[HTTPDelete]` attribute - Added `name="ExtensionlessUrlHandler-Integrated-4.0" path="*."` `verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"` - Searched Google for the necessary help here Can someone please guide me on this?