Skip Navigation LinksHome > Books > Code from a Book

app.config and machine.config file

Book Name: Building Applications and Components with Visual B
Author: Ted Pattison
Building Applications and Components with Visual Basic .NET
Buy This Book: Click Here
    Viewed Times: 4637 Add Date: 08/19/2010
Main differences between app.config and machine.config file
app.config file settings are valuable for storing data such as URLs, database connectgion string, or other values that might change after an application has gone into production.

machine.config file is located, for example: It controls the overall behavior of the CLR as well as many of the other Microsoft frameworks that are built on top of the CLR. The purpose of this file is to give the system administrator the ability to modify the behavior of all applications as well as the behavior of CLR and its many subsystems.

For example: If serveral applications all rely on the same database connection string, you can add the connection string in machine.config file.

Note: value in an application configuration file will always override an value with an identical key name in machine.config.

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.