Monday, September 26, 2011

WCF + REST + PUT/DELETE = 405 (Method not allowed)

In short: uninstall WebDAV module from IIS.

If you are getting an 405 (Method not allowed) error back when hitting your WCF REST endpoint, you should check your IIS configuration to make sure you don't have WebDAV. In my case, WebDAV was intercepting requests and returning 405 for PUT and DELETE requests. Note, though, that it is not enough to disable WebDAV, you have to uninstall it.
Post a Comment