I have an application that contain one exe file and several dlls. In one of the classes in my dll file I use ConfigurationManager.OpenExeConfiguration to read settings that declare in the main exe file. but when I change the values of sections manually in the file it always return the initial value that I set at the first time.
please tell me what I must do for reading settings from a specific config file in my application.
here’s my applicationSettings:
<applicationSettings>
<UltraData.Bonus.BonusControler.Properties.Settings>
<setting name="ProviderName" serializeAs="String">
<value>WebProvider</value>
</setting>
</UltraData.Bonus.BonusControler.Properties.Settings>
</applicationSettings>
and I want to read ProviderName value.
I find out where is my mistake. I must use
<appSettings>instead of<applicationSettings>and read those settings by usingConfigurationManager.AppSettings["ProviderName"]