App.config service on window

I am developing a Windows Service where I have an App.config. When the service is running, I cannot change the configuration values. But these values ​​are not reflected. when he reads next time.

Is it manadatory service restart eveyr time, do we change the config values?

Do you have any suggestion how we can do this without implementing any kind of file view?

+2


a source to share


1 answer


You can reload the config programmatically with Reload ():



Properties.Settings.Default.Reload();

      

0


a source







All Articles