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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.