Hi
What is different between Web.Config and Machine.Config ?
Web.Config and Machine.Config
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted May 22, 2012, 5:28 PM EDT
Machine.config is one in a system and is the default configuration for all applications running on that machine. Web.config in every webapplication overrides the machine.config. Infact, a single web application can also have more than one web.config overriding each other in the increasing order of specificity. Each web.config must be of course at different levels/folders in a single application.
Thanks
SenthilkumarRank #387 · 6.5K reputationPosted May 22, 2012, 10:58 PM EDT
A machine will have only one configuration file and all the application can share the same machine file across the multiple application in the machine.
It acts like global configuration file.
The web configuration file associates with the each application and a application can have the multiple web.config file.
The entries in the machine config can be overridden in web.config file.