About web.config file
What is the main use of having more than one web.config file in an application?
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
Prabhu RajaRank #861 · 2.6K reputationPosted Sep 13, 2011, 2:10 AM EDT
We are using Web.Config Files to Save our Default Settings and Information . So, Using this We Can Able to Reset our Application to Default one at a any time.
You can also Change the Settings in Web.Config file while you running your application. you don't need to Stop your Application Execution.
We using more then one Web.config files in our same project to meet the different security and other configuration requirements of different directories, and in any case web.config file of subdirectory will take the precedence over file of root directory.
-----------------------------------------------------------------------------------
If this post helps you, then mark as "Correct Answer"
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Sep 12, 2011, 9:39 PM EDT
It helps us to have small and easily maintainable configuration files.
Satish BhatRank #2,496 · 563 reputationPosted Sep 12, 2011, 10:22 PM EDT
Configuration files (Web.config) in child directories can supply configuration information in addition to that inherited from parent directories, and the child directory configuration settings can override or modify settings defined in parent directories.
The root configuration file named machine.config located in the directory systemroot\Microsoft.NET\Framework\versionNumber\CONFIG\ provides ASP.NET configuration settings for the entire Web server.