External config file

  • Thread starter Thread starter Carlo Goretti
  • Start date Start date
C

Carlo Goretti

Guest
Hey Guys!

I have a external config file that im trying to modify but dosent get it to work..
Can someone see where im doing wrong?

configMap = new ExeConfigurationFileMap();
configMap.ExeConfigFilename = Environment.CurrentDirectory + @"\FTPS Integration Service\FTPS integration Service.exe.config";
config = ConfigurationManager.OpenMappedExeConfiguration(configMap, ConfigurationUserLevel.None);

applicationSettings = config.AppSettings.Settings.AllKeys;



config.AppSettings.Settings[applicationSettings].Value = listTextboxes.Text;

config.Save(ConfigurationSaveMode.Modified);
ConfigurationManager.RefreshSection("appSettings");
The value is right but im missing something when im saving because it dosent bite..
Best Regards

Continue reading...
 
Back
Top