How to change application pool identity in IIS Express 7.5 for an application in applicationHost.config file for perticulat application from commandline.
I need to set "Clr2ClassicAppPool" application pool for my application.
Don't want to change default setting in applicationhost.config file, Default applcation pool set in applicationhost.config see below
<applicationDefaults applicationPool="Clr4IntegratedAppPool" />
When i replace ir with below code then my application run perfecttly.
<applicationDefaults applicationPool="Clr2ClassicAppPool" />
Thanks in advance
On the taskbar, click Start, and then click Control Panel. Double-click Administrative Tools, and then double-click Internet Information Services (IIS) Manager. In the Connections pane, expand the server name, and then click Application Pools. In the Actions pane, click Add Application Pool....
The .NET integration mode defined for the application pool determines how IIS processes an incoming request to the sites, applications and Web services that run in that application pool. Integrated mode allows IIS to process requests in the application pool by using the IIS 7 and later integrated pipeline.
The new site or virtual directory can be put in a new application pool to isolate it from other applications on the server. IIS 5.1 and earlier: The AppCreate3 method, the IIS WMI provider, and Application pools are not available, and therefore this topic does not apply.
If you are using Windows Vista or Windows 7: On the taskbar, click Start, and then click Control Panel. Double-click Administrative Tools, and then double-click Internet Information Services (IIS) Manager. In the Connections pane, expand the server name, and then click Application Pools.
Not sure about command line but you can change the app pool defaults for just your site in applicationHost.config
:
<site name="MySite" id="9">
<application path="/" applicationPool="Clr2ClassicAppPool">
<virtualDirectory path="/" physicalPath="C:\path\to\MySite" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:8280:localhost" />
</bindings>
</site>
This blog post talks about various commandline options while running IISExpress: http://www.iis.net/learn/extensions/using-iis-express/running-iis-express-from-the-command-line
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With