I have something very strange. I'm using ConfigurationManager to open configuration file like:
ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap();
fileMap.ExeConfigFilename = path;
Configuration config = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None);
everything works fine, but when I look at config.AppSettings.Settings.AllKeys I can see key named Counter that does not exist in my configuration file, in addition to the other keys.
In the configuration file:
<appSettings>
<add key="test" value="23"/>
</appSettings>
Any ideas please?
Thank you in advanced