Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force IIS Express to Classic Pipeline Mode

How can I force IIS Express to run at classic mode? And I need that this configuration stays with .csproj, once that this file that say that a project should be open with IIS Express.

like image 523
Felipe Pessoto Avatar asked May 06 '11 17:05

Felipe Pessoto


People also ask

How do I change the pipeline mode in IIS?

To toggle the Management Pipeline Mode setting for this application pool, simply double click the application pool. In the drop-down menu for Managed Pipeline Mode, toggle the setting to Integrated and select 'OK'. Once the Managed Pipeline mode is set to Integrated, you must perform an IIS Reset.

How do I change IIS Express settings?

Configure IIS express on visual studio Select the web application project and open properties -> select the web tab -> under server's select IIS express-> Specify the project URL. Now open the project folder and . vs folder (Hidden) -> Config -> applicationhost.

What is Classic and Integrated mode in IIS?

Classic mode maintains backward compatibility with earlier versions of IIS by using an ISAPI extension to invoke the ASP.NET runtime. IIS 7.0 Integrated mode is a unified request-processing pipeline that combines the ASP.NET request pipeline with the IIS core request pipeline.


2 Answers

In Visual Studio 2010 select the Web Application project node in Solution Explorer then either:

  • Press F4

or

  • Navigate to View -> Properties Window or press F4

Important: Don't Right-click -> Properties from the right-click context menu for the project node in solution explorer because that will show the Property Pages for the project which is a whole different thing.

In the properties Windows you'll see the entry for Managed Pipeline Mode:

enter image description here

In Visual Web Developer 2010 Express it's more or less the same, again select the web project except press F4 to get that property page:

enter image description here

The only caveat is that if you share the project with others (say via source control), this setting isn't stored in the .csproj file but in the IIS Express applicationHost.config file specific to your user profile. So you'd need to ensure others configured this property in their own local applicationHost.config files in:

%userprofile%\Documents\IISExpress\config

All of the above also works with Visual Studio 2013 and 2015.

like image 198
Kev Avatar answered Sep 28 '22 10:09

Kev


option-1: In Visual Studio goto WebSite/WebApplication properties and change Managed Pipeline Mode to 'Classic'.

option-2: Open %userprofile%\documents\iisexpress\config\applicationhost.config and locate your site in "Sites" section and change the app pool to classic (say Clr4ClassicAppPool).

If you want all the WebApplications/WebSites that you are going to create in Visual Studio to run in 'Classic' mode (by default), then in %userprofile%\documents\iisexpress\config\applicationhost.config file, then change the applicationDefaults app pool as shown below.

<sites>
 ........
 ........
    <applicationDefaults applicationPool="Clr4ClassicAppPool" />
    <virtualDirectoryDefaults allowSubDirConfig="true" />
</sites>
like image 42
vikomall Avatar answered Sep 28 '22 11:09

vikomall