I know that in ASP.NET web application, changing a DLL file located in the bin
folder causes an application recycle.
But I wonder, as the subject implies, whether any file changes cause such behavior? Are simple text files included in this scenario?
And what about sub folders to bin
folder? And their contents?
I know I can try it out myself, but more importantly, I'm looking for proper documentation for this.
First, i can not provide a link to an official documentation. But from what i've read every change in the bin-folder(incl. subfolders) will cause the IIS to recycle the application domain.
Abrupt Application Pool Recycling
Any modifications in the Application’s BIN Directory
Making changes in any Configuration File/s, like Web.config or others ( if you have any specific config file in your application say in a directory called App_Config).
Making modifications in the Source code files in APP_CODE Directory. This maybe change in any Source code files, or adding or deleting files from this directory.
Making changes in the Global.asax file
Making Changes in the Machine.config file.
Making any modifications in the Web Application’s Root Directory. This means creating files/subdirectories on the fly can lead to application pool recycling.
Modifications for references of Web Services of App_WebReferences directory.
Modifying the Security Settings of any directory in the Root directory. (Like specifying read security rights for everyone or any other specific user or user group.)
Here's some reading:
- What causes an application pool in IIS to recycle?
- http://christopherdeweese.com/blog2/post/beware-writing-to-the-bin-folder-in-iis-hosted-services
- What does an IISReset do?
- http://www.iis.net/ConfigReference/system.applicationHost/applicationPools/add/recycling
- Managing, Tuning, and Configuring Application Pools in IIS 7.0
- http://varunvns.wordpress.com/2011/07/04/application-pool-restarts/
来源:https://stackoverflow.com/questions/9802812/does-any-change-in-any-file-inside-bin-folder-cause-application-recycle-in-asp-n