Best way to reload web assemblies without IISReset

China☆狼群 提交于 2019-12-08 05:09:56

问题


What's the best way to reload assemblies after you do a publish to a website and or gac some assemblies.

An easy trick I've learned is to touch the web.config and it reloads the app domain.

What are the best practices related to this?

Is it possible to update a Server Activated Serviced Component without an IISRESET that is referenced by a webpage?

Thanks


回答1:


you can run

iisapp.vbs /a "App Pool Name" /r

This will restart the app pool and leave the rest of the app pools untouched. No IIS Services are stopped or started.




回答2:


If you do a publish to the website and put new .dll files in the bin, the application will recycle automatically.

If you update the GAC, you will want to either use your save method on the web.config, or simply restart the application pool that the application is in.



来源:https://stackoverflow.com/questions/744990/best-way-to-reload-web-assemblies-without-iisreset

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