We help IT Professionals succeed at work.
Get Started

app.config and a global config file in windows forms app

Last Modified: 2013-11-26
I created a DLL that in the app.config file I pointed to a global file out on a shared drive.  The dll's app.config is named DLLname.dll.config.  I assumed that the DLL would use this file to see what the settings are that are stored.  It seems that when I use the DLL in one of my applications, the code in the dll that I thought was using the dll's app.config, is using the actual applications app.config...

Before I had all of my db connections stored in the apps app.config, but I wanted to move them out to a global file that could be used by all of my apps.

This "global.config" works if I put the db connections in the file used by the application and where the application poonts, but doesn't work if I put them where the dll's dll.config file points...

Is the dll only going to take what the actual application is using and not the dll's config file?
Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE