Solved

Problem reading user settings from config file

Posted on 2007-03-21
2
184 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
2 Comments
 
LVL 25

Accepted Solution

by:
dstanley9 earned 500 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Video Player 11 23
PrintingFoundIt(Almost!(Damn!)) 1 26
Expression Evaluater 3 24
How come this regular expression allows "e"? 14 34
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
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 Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now