Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing SignalR App in IIS Express

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

like image 520
Seth IK Avatar asked Nov 05 '13 10:11

Seth IK


2 Answers

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

like image 199
Gustavo Armenta Avatar answered Sep 30 '22 07:09

Gustavo Armenta


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.

like image 29
Sam Arustamyan Avatar answered Sep 30 '22 07:09

Sam Arustamyan