Whan is a appsetting read

  • Thread starter Thread starter Thomas
  • Start date Start date
T

Thomas

Hi,

Is an appsetting "mysetting" read from disk every time it's referenced in
code with
ConfigurationSettings.AppSettings.Get("mysetting")

?

- Thomas
 
Hi Hermit,

Thanks - we were not sure if it was cached in asp.net.

- Thomas
 
Thomas,

ASP.NET employs a way similar to the shadow copying mechanism for
assemblies.
The timestamp of the web.config file is monitored and any changes cause it
to be reapplied

Hope this helps,

HD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top