Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apply modifed settings from app.config in windows service

Status
Not open for further replies.

jayy66

Programmer
Aug 21, 2006
56
US
This may be a lost cause but is there anyway to apply the changes made to an app.config file in a windows service without having to restart the service?
I have a windows service that should not ever be stopped, however, one of the requirements is to be able to modify the settings.
I tried adding the settings to a seperate XML file and loading them when the service initially starts and then re-loading them (only if the file has been modified) each minute thereafter. This worked fine but when I tried to modify the XML file I kept getting a "file is being used by another process"

Is there anyway to do this without restarting the service??

thankx in advance
 
Unless I'm somehow mistaken the answer is No... the service will sence that the web.config has changed and automatically restart itself to apply the new settings.

Senior Software Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top