reads machine.config instead of app.config

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?
 
G

Guest

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?
 

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