Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What will happen if web config file has been changed like connection while site running how much time it will be taken for affect in site after changed

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 14-Jul-12 20:36pm
v2
Comments
OriginalGriff 15-Jul-12 2:37am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.

As soon as the file has been modified on disk, IIS will notify the Application Pool to reload it. It is more or less instantaneous. You will notice because the next page reload will be noticibly slower due to recompilation.
 
Share this answer
 
Yvan is correct if IIS is set to reload on configuration change. The problem is not limited to just a performance hit because of recompilation. With this you will also loose session, application and other state (if in InProc mode). There is a trick though. If you use configSource attribute to specify a seperate configuration file which can be updated without the app domain refresh.

http://msdn.microsoft.com/en-us/library/ackhksh7.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900