472,374 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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

7
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 2057
MrMancunian
569 Expert 512MB
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
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
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
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
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
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
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
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
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
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
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
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

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.