Configuration Manager

J

Jack Jiang

I am trying to read a config file of a dll, but when I use
ConfigurationManager.AppSettings["key"]

It refer to the application.exe.config file that I am running. Any one know
how do I force it to read the dll config file instead of the application
config file. I look into
ConfigurationManager.OpenExeConfiguration("filepath"), but could not find
any example how to read the value in AppSetting, most people use this method
to write setting to it, but not the other way around.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top