3

这是我没有设法从互联网上找到的东西。

我们有一个使用 SignalR 的 Web 应用程序,它需要 Owin 需要 IIS 集成管道模式。当我在 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。

4

1 回答 1

0

CassiniDev 不支持集成流水线模式。如果您遇到此错误,您可能需要切换到 IISExpress。我通过使用此处发布的解决方案做到了这一点。

于 2016-06-17T00:30:51.760 回答