I am running IIS 7.5 Under Windows 2008 R2 (I use Windows 8.1 in development).
I use VS 2012 in Windows 8.1.
I use ASP.NET 4.5. .NET 4.5.1 in my project csproj.
Programmatically How-to know if Application Pool mode is Classic or Integrated ?
I am running IIS 7.5 Under Windows 2008 R2 (I use Windows 8.1 in development).
I use VS 2012 in Windows 8.1.
I use ASP.NET 4.5. .NET 4.5.1 in my project csproj.
Programmatically How-to know if Application Pool mode is Classic or Integrated ?
Copyright © 2021 Jogjafile Inc.
U need to use the
Microsoft.Web.Administrationnamespace. You can get this from NuGet or from %WinDir%\System32\InetSrv\Microsoft.Web.Administration.dllWith the
ServerManagerclass you can get the applicationpool you need. the property on the applicationpool you're looking for isManagedPipelineMode.The return value can either be 0 or 1:
0 - Integrated - The managed pipeline runs in Integrated mode.
1 - Classic - The managed pipeline runs in ISAPI mode.