My app.config has appSettings like that:
<appSettings>
<add key="PdfSavePath" value="D:/Test" />
</appSettings>
Now i would like to change the PdfSavePath at runtime in my WPF application. When the user selects the path, it should also be updated in the app.config. I tried to do it like that (SavePath contains the new path):
ConfigurationManager.AppSettings["PdfSavePath"] = SavePath;
However, this didn't work. Does anybody have a solution for that?