Solved

Problem reading user settings from config file

Posted on 2007-03-21
2
189 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 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

688 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