I have this code to add some settings to the App.config in a WPF application. I thought it was a simple procedure, but in the end I couldn\'t save the setting to the file. Here
Running the application from visual studio will create a new vshost.config every time. And so the settings are empty again.
The code is correct and settings will also be saved in config file.
Try running the .exe file from Debug/Release folder, the changes will be reflected.