[英]When will the IIS restart the website?
I got some information form restart website in IIS when changing values in the appSettings of the web.config so now I know IIS will restart the application poll not website. 当我在web.config的appSettings中更改值时,我在IIS中获得了重新启动网站的一些信息,所以现在我知道IIS将重新启动应用程序轮询而不是网站。
As I know when I update the web.config the IIS would restart the application pool but sometimes I didn't update the web.config but after my deploy the website seems like be restarted. 据我所知,当我更新web.config时,IIS会重新启动应用程序池,但有时我没有更新web.config但是在部署之后,网站似乎重新启动了。 Why?
为什么? because I update the website.dll or some other reason and how does IIS works to know the dll was updated and it should use the new dll to serve the user?
因为我更新了website.dll或其他一些原因,IIS如何知道dll已更新,它应该使用新的dll为用户服务?
Create/Update/Delete files under below folders will cause IIS recycle the app pool: 在以下文件夹下创建/更新/删除文件将导致IIS回收应用程序池:
Bin 箱子
App_GlobalResources App_GlobalResources文件
Global.asax Global.asax中
App_Code App_Code文件
App_WebReferences App_WebReferences
Web.config Web.config文件
Some resources: 一些资源:
https://blogs.msdn.microsoft.com/tmarq/2007/11/01/asp-net-file-change-notifications-exactly-which-files-and-directories-are-monitored/ https://blogs.msdn.microsoft.com/tmarq/2007/11/01/asp-net-file-change-notifications-exactly-which-files-and-directories-are-monitored/
https://webmasters.stackexchange.com/questions/77322/update-net-website-without-reloading https://webmasters.stackexchange.com/questions/77322/update-net-website-without-reloading
https://shazwazza.com/post/all-about-aspnet-file-change-notification-fcn/ https://shazwazza.com/post/all-about-aspnet-file-change-notification-fcn/
ASP.net C# requires IIS restart when new DLL copied to BIN directory 当新DLL复制到BIN目录时,ASP.net C#需要重新启动IIS
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.