String path = AppDomain.CurrentDomain.BaseDirectory + "..\\..\\App.Config"; Configuration config = ConfigurationManager.OpenExeConfiguration(path); ConfigurationSection appSettings = config.GetSection("appSettings"); appSettings.SectionInformation.ForceSave = true; appSettings.SectionInformation.ProtectSection("ProtectedConfigurationSection"); config.Save();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)