[英]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. 如何在IIS Express 7.5中为applicationHost.config文件中的应用程序更改应用程序池标识,以便从命令行进行perticulat应用程序。
I need to set "Clr2ClassicAppPool" application pool for my application. 我需要为我的应用程序设置“Clr2ClassicAppPool”应用程序池。
Don't want to change default setting in applicationhost.config file, Default applcation pool set in applicationhost.config see below 不想更改applicationhost.config文件中的默认设置,在applicationhost.config中设置默认应用程序池,请参见下文
<applicationDefaults applicationPool="Clr4IntegratedAppPool" />
When i replace ir with below code then my application run perfecttly. 当我用下面的代码替换ir时,我的应用程序运行得很完美。
<applicationDefaults applicationPool="Clr2ClassicAppPool" />
Thanks in advance 提前致谢
Not sure about command line but you can change the app pool defaults for just your site in applicationHost.config
: 不确定命令行,但您可以在
applicationHost.config
仅更改站点的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 这篇博文在运行IISExpress时讨论了各种命令行选项: http ://www.iis.net/learn/extensions/using-iis-express/running-iis-express-from-the-command-line
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.