Here an example to load an custom application xml config file.
// Load Configuration
CurrentConfPath = "C:\PATH\TO\EXE.CONFIG";
ExeConfigurationFileMap configMap = new ExeConfigurationFileMap();
configMap.ExeConfigFilename = CurrentConfPath;
Configuration config = ConfigurationManager.OpenMappedExeConfiguration(configMap, ConfigurationUserLevel.None);// Get a Value
config.AppSettings.Settings["NameOfValue"];
I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.
Comments
System - 2022-08-17 03:19:16
Thanks for visiting my page and have a nice day!