Only ASP.NET web apps auto restart when the web.config file is changed.
Regular EXEs such as Windows Services don't restart, but also won't pickup
config changes until it is restarted. So to have dynamically reloaded
config without restarting the app, you'll need a separate config file.
David [MSFT]
--------------------
| From: "news.microsoft.com" <kwongyuchi@hotmail.com>
| References: <OBF85tTuDHA.560@TK2MSFTNGP11.phx.gbl>
<RYKcIvbuDHA.652@cpmsftngxa06.phx.gbl>
| Subject: Re: How to make the config change effective immediately?
| Date: Fri, 5 Dec 2003 11:14:11 -0600
[quoted text clipped - 61 lines]
| > |
| > | Michael
news.microsoft.com - 05 Dec 2003 20:46 GMT
David,
Appreciate your quick response. Just for followup, will Web service behave
the same as web apps? I guess it will. Do you know some MSDN articles I
can refer to further understand what happen when a config file is modified
for each type of projects?
Thanks ;
Michael
Thanks again. Do you have a reference to how the config file works
> Only ASP.NET web apps auto restart when the web.config file is changed.
> Regular EXEs such as Windows Services don't restart, but also won't pickup
[quoted text clipped - 79 lines]
> | > |
> | > | Michael
Mike Hayton [MS] - 07 Dec 2003 03:08 GMT
Im not sure on the articles question, but WebServices (hosted in AspNet) be
restarted.
The general rule is any AppDomain (whether WebService, WebApp, singeton
.NET Remoting object, etc) that is being hosted in ASP.NET will be
restarted if the ASP.NET detects a change to the web.config or a change in
Bin directory.
Hope this helps.
Mike
--------------------
| David,
|
[quoted text clipped - 100 lines]
| > | > |
| > | > | Michael

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Mayank Thapak - 06 Dec 2004 18:07 GMT
Hello,
Can you please send me a code.
I have a config file. which is placed at another location.
i want to implement the filewatcher on that.
and when ever anybody change it the modified contain reflected.
please do needful for me
Thanks & Regards
Mayank Thapak