Solved

How does app.config work

Posted on 2009-05-12
3
690 Views
Last Modified: 2012-05-06
I have designed two programs that both use app.config files. I need both the programs in one program files folder and when I place both in there I have copied over there myapp.exe.config files into the directory but when I run the program it reports that it the system cannot find the file specified.

How does the app.config work?
Do I need to create an install?
Would it not be easier to store in the registery of the computer?

I am using visual studio 2008
0
Comment
Question by:richard_gar
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
openshac earned 500 total points
ID: 24362659
How does the app.config work?
There's a nice description here of how app.config files work:
http://www.codeguru.com/columns/dotnet/article.php/c7987

Do I need to create an install?
No, when you build your project the config files gets renamed from app.config to myapp.exe.config

Would it not be easier to store in the registery of the computer?
Not really, a configuration file is much more easily editable by the end user.  Registry settings tend to be a bit too cumbersome for an end user to easily manage, however, the registry may be the way to go if you want to discourage the user from changing the settings.

0
 

Author Comment

by:richard_gar
ID: 24362666
K, I have created my app into an exe and copied over it's .exe.config file but it still errors on me.
0
 
LVL 6

Expert Comment

by:openshac
ID: 24362675
>> I have created my app into an exe and copied over it's .exe.config

You're copying them both from the Release/Debug directory right?

Have you tried putting both application in a single solution and building them together?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

17 Experts available now in Live!

Get 1:1 Help Now