Is it executed / read-by-the-server every time a page on the site is loaded?
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.
The web.config is loaded into memory when the Application is created. This is typically the first request to a page/resource in the application. IIS (ASP.NET) monitors the web.config for changes and will restart your Application if a change is made.
If your question is actually “will web.config settings automatically update when the file is changed?” The answer is YES HOWEVER your Application will be restarted which can result in unexpected behavior including session and data loss.
Some of the above statements are not always true and I recommend reading this: http://msdn.microsoft.com/en-us/library/ms178685.aspx