ASP.NET web API HTTP Delete 405 Method Not Allowed

Viewed 22710

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?

3 Answers
Related