How can I enable DELETE verb in IIS7?

http-verbs, iis, model-view-controller

Solution

Calling `DELETE` from AJAX to an ASHX file returned a `405 Method Not Allowed` error on IIS 7. WebDAV was not installed. The site is .Net 4.0 and uses an Integrated Pipeline Mode application pool.

The error response included:

Module StaticFileModule

Notification ExecuteRequestHandler

Handler StaticFile

Error Code 0x80070001

The solution for me was to open the Handler Mappings feature for the website in IIS Manager.

Select SimpleHandlerFactory-Integrated from the Handler Mappings, this had `*.ashx` as the path.

Click on Edit in the Actions pane to open the Edit Managed Handler dialog and then click the Request Restrictions button.

Select the Verbs tab and add DELETE to the verbs list.

Problem

I have a do a call via AJAX and by Delete verb method, but the response from the IIS server is 405 Method Not Allowed. I have read about it. Apparently is all ok, I have no webDAV installed. I tried to define handlers, modules etc... and I can't get success!!!. This is the detailed error info: Module StaticFileModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x80070001 Anyone get this error too? Any light about it?

Original source