Testing SignalR App in IIS Express

只愿长相守 提交于 2019-12-07 03:30:18

问题


Hello everyone I am using visual Studio 2012 and Developed a simple application for vetting purposes only

However I am stuck because when I try to preview the application, I get the Following Error Message

[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

Any ideas on what can be done to resolve this


回答1:


Select your web application project, below Solution Explorer there is a Properties window. Select Development Server > ManagedPipelineMode > Integrated




回答2:


I couldn't find that option Visual Studio 2012 (Ultimate) either. Changing the Server to IIS Express on Project Properties->Web tab worked for me though.

Edit: Apparently that option becomes available when switching to IIS Express.




回答3:


If everything else fails, see if your project has a vwd.webinfo file that sets useClassicPipelineMode.
I never looked at this file before. I did just for fun a few days ago and found the following:

<VisualWebDeveloper>
    <iisExpressSettings windowsAuthentication="enabled" anonymousAuthentication="disabled" useClassicPipelineMode="true" sslPort="44300"/>
</VisualWebDeveloper>

I changed the "useClassicPipelineMode" value and my headaches went away!




回答4:


Your Application Pool is in classic mode but your Application need integrated mode to fire. change it to Integrated Mode:

Open IIS Manager

Application Pool

select pool that your app are run in it

In right panel select Basic Setting

Manage Pipeline Mode change to Integrated



来源:https://stackoverflow.com/questions/19786928/testing-signalr-app-in-iis-express

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!