Last post Mar 08, 2007 12:33 PM by pradeepy
Mar 08, 2007 10:12 AM|pradeepy|LINK
I have a serviced component. It is using dllhost.exe.config as it's configuration file.
The serviced component is reading the settings in dllhost.exe.config dynamically. The problem here is whenever i change the
settings in dllhost.exe.config, that change is not being read by serviced component until i uninstall the component and re-install it again.
Is there anyway i can get around this uninstall and re-install process everytime i make a change to dllhost.exe.config?
Any furthur comments and suggestions are welcome.
Thanks in advance.
Mar 08, 2007 12:33 PM|pradeepy|LINK
Ok. I found the fix. Use ConfigurationManager.RefreshSection("appSettings")
before retrieving the appSettings.