Recently I’ve had a problem where a deployed WebApi service did not accept the DELETE verb (locally, using IISExpress it worked). The solution was to remove the WebDAV module and handler for the specific site. So extend the web.config of the WebApi project with:

<system.webServer>
        <modules>
            <remove name="WebDAVModule" />
        </modules>
        <handlers>
            <remove name="WebDAV" />
        </handlers>
</system.webServer>

Then it worked just fine.

One thought on “DELETE Verb not working with WebApi and IIS

  1. Kapil Dave - India says:

    Hi

    Thanks for sharing nice post

Leave a Reply

Your email address will not be published. Required fields are marked *