I am currently updating several parameters in a fairly large * .exe.config file through the * .exe executable, using XLinq to navigate directories and read / write values. The problem with updating this method is that the changes take effect only after restarting the executable file, but I want the changes to take effect instantly. Is there a way to tell the executable to reload the * .exe.config file after making the changes?
All help is appreciated and thanks in advance!
Exoskeleton for app.config
<configuration> <system.serviceModel> <client> </client> </system.serviceModel> </configuration>
EDIT: One of the reasons I know so little about this is that I did not create app.config - it was automatically generated by someone else's code. The reason I have to change it and make changes to the application is because another part of the code (to which I do not have access) calls the configuration file to get its data, but if I do not restart then the old settings will be used, which will not work in this application.
EDIT2: If I cannot change this dynamically, how can I change the code so that it can execute dynamically? The best answer is generosity ...
source share