Reputation: 8442
I just wanted to check as I can't find the answer on Google. If a custom config file in my application root is changed during run time, the app won't restart right? .NET is only watching over web.config right?
Upvotes: 3
Views: 1672
Reputation: 3665
Found a good resource that seems to explain what cause an automatic reset. It really depends on some of the particulars in your case.
Altering the following files will also trigger an immediate restart of the application pool:
Upvotes: 1
Reputation: 9242
by default, the website will restart if you changed your custom config files that are being references inside your web.config file, but to overcome this behavior is an easy thing. You will need to change the attribute "restartOnExternalChanges" to false in your machine.config file.
See: http://msdn.microsoft.com/en-us/library/ms228057.aspx
also note that if you modifies files under your bin folder, the application will restart.
Upvotes: 1