Install iis express 7.5 application pool for application

How to change the application pool identifier in IIS Express 7.5 for the application in the applicationHost.config file for the perticulat application from the command line.

I need to install the Clr2ClassicAppPool application pool for my application.

I do not want to change the default setting in the applicationhost.config file, the default application pool is set to applicationhost.config below

<applicationDefaults applicationPool="Clr4IntegratedAppPool" />

When I replace ir with the code below, my application works fine.

<applicationDefaults applicationPool="Clr2ClassicAppPool" />

Thanks in advance

+4
source share
1 answer

Not sure about the command line, but you can change the default values ​​for the application pool for your site only to 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>

IISExpress: http://www.iis.net/learn/extensions/using-iis-express/running-iis-express-from-the-command-line

+5

Source: https://habr.com/ru/post/1528770/


All Articles