473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Configuration System

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
Nov 19 '05 #1
6 907
Dinesh:
I honestly don't know the exact mechanism ASP.Net uses for Web.Config.

However, the .Net framework has a FileSystemWatcher which lets you pick up
changes to files, take a look at:
http://www.csharphelp.com/archives2/archive377.html

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Dinesh" <Di****@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
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

Nov 19 '05 #2
I imagine it puts a watch on the file, like with
System.IO.FileSystemWatcher.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 10 Mar 2005 03:57:02 -0800, Dinesh
<Di****@discussions.microsoft.com> wrote:
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

Nov 19 '05 #3
AFAIK it uses a Windows API that catch "updates" to the file system. This
API is also exposed as Managed classes (FileSystemWatcher).

Patrice

--

"Dinesh" <Di****@discussions.microsoft.com> a écrit dans le message de
news:E7**********************************@microsof t.com...
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

Nov 19 '05 #4
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...
======================

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:lq********************************@4ax.com...
I imagine it puts a watch on the file, like with
System.IO.FileSystemWatcher.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 10 Mar 2005 03:57:02 -0800, Dinesh
<Di****@discussions.microsoft.com> wrote:
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



Nov 19 '05 #5
FileSystemWatcher.

--
HTH,

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

"Dinesh" <Di****@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
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

Nov 19 '05 #6
Thanks all
That makes sense

"Karl Seguin" wrote:
Dinesh:
I honestly don't know the exact mechanism ASP.Net uses for Web.Config.

However, the .Net framework has a FileSystemWatcher which lets you pick up
changes to files, take a look at:
http://www.csharphelp.com/archives2/archive377.html

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Dinesh" <Di****@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
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


Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is...
3
by: hB | last post by:
Hi. Error = "The configuration system can only be set once. Configuration system is already set" Exception Details: System.InvalidOperationExcepti­on: The configuration system can only...
0
by: Jorgas | last post by:
Hi! I try to use the configuration application block from the Enterprise Library and have done prework as specified from one of the hands-on labs from that package. When trying to get...
5
by: Water Cooler v2 | last post by:
I know that we can add a single name value entry in app.config or web.config in the configuration/configSettings/appSettings section like so: <add key="key" value="value" /> Question: I want...
4
by: Michael Lang | last post by:
I was basically wanting to know how to use the System.Configuration namespace to be able to load an arbitrary number of unknown attributes on an element in a custom section in the .config into a...
6
by: Jeff Hegedus | last post by:
I have a dll that requires some configuration data. I put the configuration data in a custom configuration section in a config file that is loaded in the installation folder of the dll. If I...
8
by: Alberto | last post by:
Can you tell me how to read and modify a value in the app.config file using this class? Thank you very much
7
by: =?Utf-8?B?RG91Z2llIEJyb3du?= | last post by:
Hi I've written custom configuration section (inherits from System.Configuration.ConfigurationSection) to simplify the contents of the config file and to make life easier when accessing them in...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi, thanks, mister The code string rutaConfig = tbRutaConfigServicioBase.Text; '// Map to the application configuration file. ExeConfigurationFileMap configFile = New...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.