WebDAV和的WebAPI一起导致错误:处理程序和QUOT; ExtensionlessUrlHandler - 集成 - 4.0"有一个坏模块" ManagedPipelineHandler"在其模块列表 [英] WebDAV and WebAPI together cause Error: Handler "ExtensionlessUrlHandler-Integrated-4.0" has a bad module "ManagedPipelineHandler" in its module list

查看:1905
本文介绍了WebDAV和的WebAPI一起导致错误:处理程序和QUOT; ExtensionlessUrlHandler - 集成 - 4.0"有一个坏模块" ManagedPipelineHandler"在其模块列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装和我的网站上同时运行的WebDAV,作为一个虚拟的子网站,我有一个MVC的WebAPI的网站,该API的伟大工程,直到我尝试发送一个PUT请求,然后我得到下面的错误:

I have both WebDAV installed and running on my site, as a virtual sub site i have a MVC WebAPI site, the API works great, until I try to send a PUT request to it, then i get the below error:

HTTP错误500.21 - 内部服务器错误

处理程序ExtensionlessUrlHandler - 集成 - 4.0有一个坏模块ManagedPipelineHandler

如果我禁用WebDAV的,那么一切工作正常,我没有得到任何错误。这不仅是支持WebDAV时发生的。

If I disable WebDAV, then everything works fine and I get no errors. This only happens when WebDAV is enabled.

我有以下的code在我的web.config:

I have all of the following code in my web.config:

<system.webServer>
  <validation validateIntegratedModeConfiguration="false" />
  <modules runAllManagedModulesForAllRequests="false">
    <remove name="WebDAVModule" />
  </modules>
  <handlers>
    <remove name="WebDAV" />
    <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
    <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
    <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
    <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
    <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
    <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  </handlers>
</system.webServer>

我已经试过各种应用程序池搞乱。

I've tried messing with various app pools.

我也厌倦了在所有这些问题中提到的事情:

I've also tired all of the things mentioned in all of these questions:

<一个href=\"http://stackoverflow.com/questions/8659862/how-to-get-rid-of-this-error-handler-pagehandlerfactory-integrated-has-a-bad-m\">How要摆脱这种错误处理程序和QUOT的; PageHandlerFactory集成的&QUOT;有一个坏模块&QUOT; ManagedPipelineHandler&QUOT;在其模块列表

<一个href=\"http://stackoverflow.com/questions/13162545/handler-extensionlessurlhandler-integrated-4-0-has-a-bad-module-managedpipeli\">Handler &QUOT; ExtensionlessUrlHandler - 集成 - 4.0&QUOT;有一个坏模块&QUOT; ManagedPipelineHandler&QUOT;在其模块列表

<一个href=\"http://stackoverflow.com/questions/6846544/how-to-fix-handler-pagehandlerfactory-integrated-has-a-bad-module-managedpip\">How修复:处理程序和QUOT; PageHandlerFactory集成的&QUOT;有一个坏模块&QUOT; ManagedPipelineHandler&QUOT;在其模块列表

这一切都已经解决了我的问题,还有什么在那里,我还没有试过?

None of this has solved my issue, is there anything else out there that I have not tried?

推荐答案

我们最终将微软的这一点,他们审查了好几个星期回来之前说的它不可能在运行WebDAV和的WebAPI同一站点

We ended up going to Microsoft with this, they reviewed it for several weeks before coming back saying that it's not possible to run WebDAV and WebAPI in the same site.

他们将尝试在未来的IIS版本中解决这个问题。

They will try to address this issue in a future release of IIS.

这篇关于WebDAV和的WebAPI一起导致错误:处理程序和QUOT; ExtensionlessUrlHandler - 集成 - 4.0&QUOT;有一个坏模块&QUOT; ManagedPipelineHandler&QUOT;在其模块列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆