reads machine.config instead of app.config

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to test some code in VS.NET using
ConfigurationManager.ConnectionSettings to retrieve a database connection
string from an app.config file I added to my project.
ConfigurationManager.ConnectionSettings is trying to retrieve the information
from machine.config in some directory for VS QuickStart Tutorials which is
unrelated to my app.

What the heck is going on and how do I retrieve info from the app.config
file thats part of my project?
 
I had app.config as part of a DLL Project. I moved app.config to the EXE
project that references the DLL and it seems to work now. It appears that
ConfigurationManager used the EXE that references the DLL. Can anyone verify
this for me?
 
Back
Top