473,503 Members | 13,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I force a service to re-read the configuration from disk without restarting

7 New Member
I have a service that can be configured using a simple xml file. When the service starts it reads this xml.
I'd need to change the xml config file while the service is running (no probs so far) and having the service use this new version of the config. This can be done restarting the service or stop/start it. The point is that I cannot face "pauses", I'd need the service always up and running.
So I wonder if there's a way to tell the service to re-red the configuration from the disk instead of using the cached one.
Both command line/tool and C# code would be ok...

Thanks!
Jul 30 '09 #1
1 2096
MrMancunian
569 Recognized Expert Contributor
Can't you write some code into your service that occasionally checks for a new version of the XML-file. Otherwise, I'm afraid you do need to restart your service.

Steven
Aug 11 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4911
by: Navin | last post by:
hi, guys i am using the following code to force a file download dialog in asp Response.ContentType = "application/vnd.ms-excel" response.AddHeader "content-disposition","attachment; filename="...
1
1797
by: Ingo Nolden | last post by:
When I build a static lib how can I force the linker to include other lib modules or at least the symbols that are used in my libs? -- ~ Samba, more than a low cost File and Printer server ~ --...
2
18557
by: David Hunt | last post by:
I'm developing a Windows Service and just added a standard try... catch exception handler to its OnStart() routine. I would like to know how to force the service to abort its startup when an...
5
1529
by: clintonG | last post by:
I haven't written any mail handlers using .NET at this time. I need to know however if there is a failsafe methodology supported by the classes in the framework if it will be possible to send mail...
4
4195
by: Jason | last post by:
I have a web service running on IIS 5.0. We know the web service is not threadsafe, and want to force aspnet_wp.exe to only run one instance of our web service. What settings do we use to do...
0
998
by: Raffi B. | last post by:
I want to force my C#/.net 2.0 client to use SOAP 1.1 when sending SOAP messages to my Java web service which only supports 1.1. Can I specify a setting in app.config or web.config to force SOAP...
0
1040
by: Verticon:: | last post by:
Per microsoft, the ExitCode property of the ServiceBase returns 0 for success and non zero for failure. However, when I set this property to 1, the service still stops in a success state. ...
1
4126
by: John A Grandy | last post by:
I have a server with a custom .NET Windows Service installed. The folder containing the service's .exe and .dll files is long gone. I need to uninstall the service. InstallUtil.exe /u...
0
1511
by: savajx1 | last post by:
I am loading signed assemblies from a network share. The assemblies are NOT INSTALLED in the GAC as they are part of an enterprise distributed application implemented as a windows service that...
1
3815
by: Daniel | last post by:
how to force a .net application to use .net 2.0 ? this windows service is about 4 years old and im pretty sure is using .net 1.x runtime. Is there soem setting in the installer that says to use...
0
7213
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
7366
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...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.