Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problem reading user settings from config file

Posted on 2007-03-21
2
Medium Priority
?
191 Views
Last Modified: 2010-04-16
I have written a C# dll. I set some user settings in the project properties -> Settings tab.

There is a connection string setting that the dll is supposed to read out of the mydll.dll.config file at run time. However no matter what I try and do it seems that the dll does not read the connection string out of the file. I can change the connection string in the file manually, remove it or delete the .config file all together and it does not affect the dll in any way. The only way the connection string setting can be changed is to open the project and change it in the settings tab.

Can anyone tell me what I am doing wrong?

Thanks
0
Comment
Question by:asmyatt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
dstanley9 earned 2000 total points
ID: 18764714
An application will not use separate config files for referenced dlls.  It will use the config file for the application (appname.exe.config).  The connection string muct be placed within this file to use the built-in configuration manager.
0
 
LVL 2

Author Comment

by:asmyatt
ID: 18764971
thank you!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question