开发者

Does the worker process restart if I replace a Dll on my website on IIS 7.5

开发者 https://www.devze.com 2023-04-13 09:23 出处:网络
Does the worker process restart if I replace a Dll on my w开发者_JAVA百科ebsite on IIS 7.5 For example while deploying my application I just copy paste stuff and do not restart the website or stop it

Does the worker process restart if I replace a Dll on my w开发者_JAVA百科ebsite on IIS 7.5

For example while deploying my application I just copy paste stuff and do not restart the website or stop it would be worker process restart for the App Pool under


If you could actually replace the DLL, it means it was not loaded by the worker process at the time (or else, the .dll file would be locked). Seeing as it hasn't been used yet, the worker process will not restart - it will just load the new .dll file if/when it's needed.

However, I do not recommend "warm" upgrades like these since it leaves you in an undetermined state.


Yes, it does. The process worker will restart for several other reasons also:

Web.config modification Changing or adding any file to the /bin directory

It´s recommended that you stop the application pool and your web site, make any change, and then start it again, so you don't have weird behaviour on your app.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号