These days I run into this issue: my restful service hosting with IIS 7.5 and using Asp.net 4.0 not support PUT or DELETE verbs for http request.

solved.

the following configuration setting fixed our problem:

     <modules runAllManagedModulesForAllRequests="true">
        <remove name="WebDAVModule" />
     </modules>

As reported in [1], this is due to the WebDAV module now being an integral part of IIS 7.5 (and on 7.0 if installed). Removing the module allowed all 4 verbs to come through to our service tier. Cheers!

[1]:  http://shouldersofgiants.co.uk/Blog/post/2009/11/27/HTTP-Error-405-With-ASPNet-MVC-and-HTTP-PUT-on-IIS-75.aspx

相关文章:

  • 2021-08-06
  • 2021-11-15
  • 2022-02-15
  • 2021-12-02
  • 2021-08-22
  • 2021-12-27
  • 2022-01-30
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-09-03
  • 2021-05-22
  • 2021-06-08
  • 2022-12-23
相关资源
相似解决方案