You can download the external app.config file using the following code:
config = ConfigurationManager.OpenExeConfiguration(Path.Combine("C:\test\root", "Master.exe")); string logpath = config.AppSettings.Settings["Log.Path"].Value;
And save the settings like this:
config = ConfigurationManager.OpenExeConfiguration(Path.Combine("C:\test\root", "Master.exe")); config.AppSettings.Settings["Log.Path"].Value = "C:\newpath"; config.Save();
You may need to have the main configuration in one of the applications and specify the rest. This method is usually considered bad practice. There may be problems with various applications blocking the file.
source share