Solved

How does app.config work

Posted on 2009-05-12
3
703 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Point to Current Row Ater Refresh Datagridview 3 24
VB.NET (2008) - Refactoring Question 2 19
ASP/VB email question 4 31
vb.net and creating a class 5 14
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
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 teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

806 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