IISExpress application pool recycle

大城市里の小女人 提交于 2019-12-10 16:19:58

问题


Is there a way to recycle iisexpress application pool?

I open cmd and go to "C:\Program Files\IIS Express"
Then I'm running "appcmd apppool /?" and the list of commands over there lacks the "recycle" option.

The only workaround I've found is to edit the applicationhost.config file. Only then the IISExpress apppool is recycled.

Is there a more elegant way to achieve that?
Thanks


回答1:


IIS Express does not have application pool support at all, as it is just a single process web server. You can kill the process but it won't automatically start.

True application pool support requires a Windows service like Windows Process Activation Service. Thus, if you do want to test out application pool, use local IIS.




回答2:


If you to "simulate" the app pool recycle to test your app initialization routines you could "touch" the web.config file too.

Just add a space and re-save.



来源:https://stackoverflow.com/questions/35718728/iisexpress-application-pool-recycle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!