PUT and DELETE returns 404 for asp.net webapi in Windows 2008 Server IIS 7 and 7.5

后端 未结 4 649
情书的邮戳
情书的邮戳 2021-01-18 07:03

I run into 500 - Internal Server Error when PUT/DELETE with windows 2008 server IIS. The response I get is:



        
4条回答
  •  爱一瞬间的悲伤
    2021-01-18 07:37

    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.

提交回复
热议问题