Click here to Skip to main content
15,920,801 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
1.How to read values from machine.config
2.When do we need the data in machine.config in application
Posted

1 solution

1 & 2) web.config inherit values from machine.config
Machine.config contain general machine settings (ie: security), web.config contain software settings.

More info about inheritance :
http://msdn.microsoft.com/en-us/library/ms178685.aspx[^]

Normaly you have not to read this file. Use simply values in web.config, ie by using ConfigurationManager class.
More info about ConfigurationManager :
http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager(v=VS.90).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900