WebDAV和的WebAPI一起导致错误:处理程序和QUOT; ExtensionlessUrlHandler

编程入门 行业动态 更新时间:2024-10-23 13:36:05
本文介绍了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:

How要摆脱这种错误处理程序和QUOT的; PageHandlerFactory集成的&QUOT;有一个坏模块&QUOT; ManagedPipelineHandler&QUOT;在其模块列表

Handler &QUOT; ExtensionlessUrlHandler - 集成 - 4.0&QUOT;有一个坏模块&QUOT; ManagedPipelineHandler&QUOT;在其模块列表

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

本文发布于:2023-11-15 04:04:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1590982.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   程序   WebAPI   WebDAV   QUOT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!