Testing SignalR Application in IIS Express

Hi everyone, I am using Visual Studio 2012 and have developed a simple application to check only

However, I am stuck because when I try to view 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 solve this problem

+6
source share
4 answers

Select a web application project, there is a Properties window below in the "Solution Explorer" section. Select Development Server> ManagedPipelineMode> Integrated

+10
source

I could not find this version of Visual Studio 2012 (Ultimate). Changing the server for IIS Express on project properties -> The web tab worked for me though.

Edit: this option appears to be available when switching to IIS Express.

+1
source

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

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

I changed the value of "useClassicPipelineMode" and my headaches disappeared!

0
source

Your application pool is in classic mode, but built-in mode is required to run the application. go to integrated mode:

Open IIS Manager

Application pool

select the pool where your application is running

In the right pane, select Basic Setting

Pipeline to integrated mode control

0
source

Source: https://habr.com/ru/post/957417/


All Articles