Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to switch IIS Developer Express to "Classic Mode"

I know how to switch to "Classic Mode" (from "Integrated Mode") in the full IIS via application pool settings. But I can't find how to do it in the current IIS Developer Express beta.

The MS Developer Express FAQ says it can be done, but not how. It's not in the WebMatrix GUI, as far as I can tell. Maybe customization of the Developer Express project file, but I don't see any documentation for that at all.

FYI, there is a Settings area where you can set SSL, CLR version (2.0 in this case), which is where I figure the Pipeline mode (Classic/Integrated) would be, but it's not there.

like image 297
Jon Adams Avatar asked Sep 20 '10 03:09

Jon Adams


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 managed pipeline mode in Visual Studio?

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 ).

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.

What is IIS and IIS Express?

An important difference is the way worker processes are managed. In IIS, the Windows Process Activation Service (WAS) silently activates and deactivates Web applications and the user has no direct control. In IIS Express, there is no WAS and the user has full control of application activation and deactivation.


3 Answers

Using appcmd is not needed, it is best to change this in the project's settings:

  1. Click on the web project in the solution explorer
  2. Press F4 to get the properties page to show up (not the properties sheet, but the simpler properties window where you set up general things)
  3. Look for 'Managed Pipeline Mode', change this to 'Classic'
like image 152
Raul Vejar Avatar answered Nov 14 '22 02:11

Raul Vejar


I found the following worked with my copy of the IIS Express beta ...

appcmd set app /app.name:ExampleApp/ /applicationPool:Clr4ClassicAppPool

Note the forward slash at the end of ExampleApp !

like image 21
SteveC Avatar answered Nov 14 '22 01:11

SteveC


What version of VS are you using? The reason I ask is because tooling support for integrated mode is only supported from VS2010 up. See comment here:

http://weblogs.asp.net/scottgu/archive/2010/06/28/introducing-iis-express.aspx

http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe

http://learn.iis.net/page.aspx/870/use-the-command-line-to-run-a-webmatrix-site-or-application/

like image 39
IrishChieftain Avatar answered Nov 14 '22 02:11

IrishChieftain