Configuration System

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I Know that if there is any change to web.config file there is no need to
restart the application
but how does aspnet tracks this information
i understand that aspnet caches the web.config file during the first request
and uses it for high performance
so this tracking of web.config is possible
pls reply at the earliest

thanks
 
I imagine it puts a watch on the file, like with
System.IO.FileSystemWatcher.
 
AFAIK it uses a Windows API that catch "updates" to the file system. This
API is also exposed as Managed classes (FileSystemWatcher).

Patrice
 
Yes, and it also does that for :

Machine.config
Files in the Bin directory of an ASP.NET application
Cache dependency files



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 
FileSystemWatcher.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 

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