gpt4 book ai didi

cassini-dev - Cassini DevServer 是否支持 Integrated Pipeline 模式?

转载 作者:行者123 更新时间:2023-12-02 04:56:24 25 4
gpt4 key购买 nike

这是我没能从互联网上找到的东西。

我们有一个 Web 应用程序使用需要 IIS 集成管道模式的 Owin 的 SignalR。当我在 Cassini Dev Server 上运行我们的 Web 应用程序时,出现以下错误:

[PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.]
System.Web.HttpResponse.get_Headers() +214
Microsoft.Owin.Host.SystemWeb.CallHeaders.AspNetResponseHeaders..ctor(HttpResponseBase response) +37
Microsoft.Owin.Host.SystemWeb.OwinCallContext.CreateEnvironment() +492
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.GetInitialEnvironment(HttpApplication application) +263
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.PrepareInitialContext(HttpApplication application) +19
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.BeginEvent(Object sender, EventArgs e, AsyncCallback cb, Object extradata) +462
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +556
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

在自动测试中运行 IIS Express 和其他替代方案是 PITA。

最佳答案

CassiniDev 不支持集成管道模式。如果您遇到此错误,您可能需要切换到 IISExpress。我通过使用发布的解决方案做到了 here .

关于cassini-dev - Cassini DevServer 是否支持 Integrated Pipeline 模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21597022/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com