• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 742
  • Last Modified:

How does app.config work

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
richard_gar
Asked:
richard_gar
  • 2
1 Solution
 
openshacCommented:
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
 
richard_garAuthor Commented:
K, I have created my app into an exe and copied over it's .exe.config file but it still errors on me.
0
 
openshacCommented:
>> 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now