?
Solved

How does app.config work

Posted on 2009-05-12
3
Medium Priority
?
729 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
[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
3 Comments
 
LVL 6

Accepted Solution

by:
openshac earned 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

743 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