Finding a custom section in a config file works when I use a path to a file, but when I pass in an exe config file map of the same thing it fails. Why?
string file = System.Reflection.Assembly.GetAssembly(typeof(PhotoComparison)).Location + ".config";
var efm = new ExeConfigurationFileMap() { ExeConfigFilename = file };
var cfm new ConfigurationFileMap(file)
//returns entry
var o2 = ConfigurationManager.OpenMappedMachineConfiguration(cfm).GetSection("presetFilters");
//returns null
var o3 = ConfigurationManager.OpenMappedMachineConfiguration(efm).GetSection("presetFilters");