S
shapper
Hello,
I am getting the AppSettings section as follows:
AppSettingsSection appSettingSection =
(AppSettingsSection)ConfigurationManager.GetSection("appSettings");
However, I am getting the following error:
Unable to cast object of type
'System.Configuration.KeyValueInternalCollection' to type
'System.Configuration.AppSettingsSection'.
What am I doing wrong?
Thanks,
Miguel
I am getting the AppSettings section as follows:
AppSettingsSection appSettingSection =
(AppSettingsSection)ConfigurationManager.GetSection("appSettings");
However, I am getting the following error:
Unable to cast object of type
'System.Configuration.KeyValueInternalCollection' to type
'System.Configuration.AppSettingsSection'.
What am I doing wrong?
Thanks,
Miguel