Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2007

Tip: Looking for answers? Try searching our database.

App.Config versus exe.config

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Zopers - 12 Jun 2007 16:21 GMT
Hello,

I've developed a dll that uses an App.config file to read some settings.

After that, I've developed two executables and both use the dll I just
mentioned.

After building the exe's, both exe's get an exe.config file in the bin
directory and this is the same file as the App.config file of the dll.

I do not want this. I just want one configuration file that is used by
the dll, now I get for both executables a separate config file and this
is done automatically when I build the exe projects. So now the same
settings are in two different config files.

Does anyone know how I can solve this?

Greetings,
Chris.
Mr. Arnold - 12 Jun 2007 17:08 GMT
> Hello,
>
[quoted text clipped - 10 lines]
> is done automatically when I build the exe projects. So now the same
> settings are in two different config files.

> Does anyone know how I can solve this?

You do know there is the ConfigurationManager in .Net 2.0 and the
Applications Block in .Net 1.1 using the ConfigurationSettings, which both
of them do the same thing in working App.config or the appname.execonfig.

http://www.dotnetfun.com/articles/framework/2.0/WhatsNew20ConfigurationManager.aspx
TM Software - 12 Jun 2007 17:13 GMT
DLL dont read app.config file. You have to read configuration data and
send it to dll.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.