Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How does app.config work

Posted on 2009-05-12
3
Medium Priority
?
739 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

618 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