DELETE Verb not working with WebApi and IIS

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.

Advertisements

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s