I run into 500 - Internal Server Error when PUT/DELETE
with windows 2008 server IIS. The response I get is:
I had the same issue recently on my Win Server 2008 R2 / IIS 7.5 and it took me couple of hours just to found out it was caused by LiveStreamingHandler. LiveStreamingHandler module on the IIS causes the PUT
and DELETE
HTTP verb error.
Uninstall the Media Services 4.1 with Add and Remove program and reboot the server fixes this issue. Hope this help someone.
After agonizing over a very similar problem, I came upon this solution: http://www.iis.net/configreference/system.webserver/security/requestfiltering/verbs
Using the Request Filtering settings, I was able to globally allow the PUT and DELETE verbs in IIS, which solved my problem. It ended my nightmare of 404.6 errors. (btw, I did not have webDAV installed and did add the verbs to the ExtensionlessUrlHandler)
Hopefully this info can save someone some time.
I make the Neil S` information more exact:
So, 404 and 405 error for Put method was disappeared, I receive 200 status.
This solution works for me.
Try turning on custom error by adding
<customErrors mode="Off" />
You will see the actual cause of the 500 error when you browse to the API controller, e.g.: http://staging.site.com/api/book.
You will find more clues from the actual exception messages.