How do you fix a 500 Server Error while running REST PUT or DELETE requests?

HelenaG Grulichova asked on October 2, 2012 03:09

How do you fix a 500 Server Error while running REST PUT or DELETE requests?

Correct Answer

HelenaG Grulichova answered on October 2, 2012 03:09

If you are using WebDAV, you will likely get this error in the server log:

HTTP Error 500.21 - Internal Server Error
Handler "WebDAV" has a bad module "WebDAVModule" in its module list.

The WebDAV module will block both the DELETE and PUT (update) verbs for IIS.
You can either uninstall WebDAV or simply remove it from the Handlers of the site. One way to remove it is to add the following remove lines to your site's web.config:

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

More details can be found here: http://forums.iis.net/t/1166025.aspx

-zc-
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.