Asp.net mvc 在IIS Express中测试信号器应用程序
大家好,我正在使用visual Studio 2012并开发了一个简单的应用程序,仅用于审查目的 但是,我被卡住了,因为当我尝试预览应用程序时,会收到以下错误消息Asp.net mvc 在IIS Express中测试信号器应用程序,asp.net-mvc,signalr,iis-express,Asp.net Mvc,Signalr,Iis Express,大家好,我正在使用visual Studio 2012并开发了一个简单的应用程序,仅用于审查目的 但是,我被卡住了,因为当我尝试预览应用程序时,会收到以下错误消息 [PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.] System.Web.HttpResponse.get_Headers() +9681446 System.Web.HttpResponseWrapp
[PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.]
System.Web.HttpResponse.get_Headers() +9681446
System.Web.HttpResponseWrapper.get_Headers() +9
Microsoft.Owin.Host.SystemWeb.OwinCallContext.CreateEnvironment() +309
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.GetInitialEnvironment(HttpApplication application) +246
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.PrepareInitialContext(HttpApplication application) +15
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.BeginEvent(Object sender, EventArgs e, AsyncCallback cb, Object extradata) +288
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +285
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
关于如何解决此问题的任何想法请选择您的web应用程序项目,在解决方案资源管理器下面有一个属性窗口。选择Development Server>ManagedPipelineMode>Integrated我也找不到Visual Studio 2012(旗舰版)的选项。不过,在项目属性->Web选项卡上将服务器更改为IIS Express对我来说很有效
编辑:显然,切换到IIS Express时该选项变为可用 如果其他所有操作都失败,请查看您的项目是否有设置useClassicPipelineMode的vwd.webinfo文件。
我以前从未看过这个文件。几天前我只是为了好玩才这么做的,结果发现:
<VisualWebDeveloper>
<iisExpressSettings windowsAuthentication="enabled" anonymousAuthentication="disabled" useClassicPipelineMode="true" sslPort="44300"/>
</VisualWebDeveloper>
我更改了“useClassicPipelineMode”值,我的头痛消失了 您的应用程序池处于经典模式,但您的应用程序需要集成模式才能启动。将其更改为集成模式: 打开IIS管理器 应用程序池 选择在其中运行应用程序的池 在右侧面板中,选择基本设置
管理管道模式更改为集成确保您使用的是IIS Express而不是开发服务器。我使用的是Visual Studio 2012。我不认为该选项在VS 2012中不可用。因此,您可以通过右键单击项目,选择“属性”,点击“web”选项卡,并在“服务器”部分下选择“使用本地IIS web服务器”来更改使用的服务器。在VS 2012网站(非应用程序)中,我可以右键单击我的项目并直接“使用本地IIS web服务器”。谢谢。,,这很有帮助:)