all groups > visual studio .net enterprise tools > january 2004 >
You're in the

visual studio .net enterprise tools

group:

Application log level not refreshing


Application log level not refreshing Kevin W
1/30/2004 7:51:08 AM
visual studio .net enterprise tools:
RE: Application log level not refreshing mikehayt_ NO[at]SPAM online.microsoft.com
2/3/2004 6:13:16 PM
Hi there,

Changes to app.config files are not picked up until the application is
restarted. It sounds like your app is a windows service. If you "net stop
myservice" & "net start myservice" this should cause the change in the
app.config file to be picked up.

Mike

--------------------
|
| I changed the application log level key in the app.config file and it did
not pick up or refresh. I had to uninstall and re-install my windows
service executable in order for the changes to be recognized. Shouldn't
the changes have been recognized without having to uninstall and
re-install? Or even without having to stop and start the service again?
|

--

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
RE: Application log level not refreshing Tim Reynolds
2/5/2004 8:26:06 AM
Mike
Can the logging block be configured to be refreshable for windows service? In the logging block, there is a sample of a refreshable web service and a refreshable console application. Is there a sample avaialable or directions on how to modify the logging block to make the applicationLogLevel in the config file refreshable without doing a restart

Thank you
Tim Reynold
RE: Application log level not refreshing mikehayt_ NO[at]SPAM online.microsoft.com
2/10/2004 5:07:20 PM
I believe the PAG group which did the Logging Block (different from my
group that did EIF), have some code that allows you to have entries in the
standard .config be reloaded when the .config is changed.

I dont know how it works, whether it reloads the entire contents of .config
(or a small section), and whether you access the values via the normal
configuration apis. I remember that the logging block documentation talked
about this code and perhaps gave it a name. I'd ping devfdbck@microsoft.com
and ask them for further details.

Sorry about the slow reply. I had a very hetic week last week.

Mike




--------------------
| Mike,
Can the logging block be configured to be refreshable for windows service?
In the logging block, there is a sample of a refreshable web service and a
refreshable console application. Is there a sample avaialable or
directions on how to modify the logging block to make the
applicationLogLevel in the config file refreshable without doing a restart?

Thank you,
Tim Reynolds
Verizon FL
|

--

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
AddThis Social Bookmark Button