Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set application pool iis express 7.5 for application

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

like image 848
mmpatel009 Avatar asked Feb 25 '14 15:02

mmpatel009


People also ask

How do I create an application pool in IIS?

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

What is integration mode in IIS 7?

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.

How do I isolate a site from other applications in IIS?

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.

How do I connect to IIS on Windows 7?

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.


1 Answers

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

like image 82
Mrchief Avatar answered Oct 18 '22 22:10

Mrchief