//Path to your config file
System.Configuration.ConfigurationFileMap
fileMap = new
ConfigurationFileMap(strConfigPath);
System.Configuration.Configuration configuration = System.Configuration.ConfigurationManager.OpenMappedMachineConfiguration(fileMap);
This is the better solution which unit tests against a configuration file and want to parse a specific file . So try this out
|