IIS 7, HttpHandler and HTTP Error 500.21

后端 未结 7 860
既然无缘
既然无缘 2020-12-09 17:40

On IIS 7, I\'m trying to use custom HttpHandler for my ASP.NET web application. I use pipeline mode \"classic\", .NET version is 4.0.30319, my web.config configuration for t

7条回答
  •  被撕碎了的回忆
    2020-12-09 18:06

    I had the same problem and just solved it. I had posted my own question on stackoverflow:

    Can't PUT to my IHttpHandler, GET works fine

    The solution was to set runManagedModulesForWebDavRequests to true in the modules element. My guess is that once you install WebDAV then all PUT requests are associated with it. If you need the PUT to go to your handler, you need to remove the WebDAV module and set this attribute to true.

    
    ...
    
    

    So if you're running into the problem when you use the PUT verb and you have installed WebDAV then hopefully this solution will fix your problem.

提交回复
热议问题