Can we use multiple web config file in a asp.net application
3 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
praveen maurya103 reputationPosted Jul 6, 2012, 3:09 AM EDT
if your asp.net application have many folders then you can use web.config for each folder in it
Satyapriya NayakRank #47 · 31.5K reputationPosted Jul 6, 2012, 3:18 AM EDT
In a single web application we 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
Jignesh TrivediRank #16 · 50.3K reputationPosted Jul 6, 2012, 4:18 AM EDT
you can work with more then one web.config file in asp.net. But each one web.config is in different folder.also they can have only some of the settings (Like authorization etc) and not all the settings of Web.config.
To acheive Please refer
http://www.codeproject.com/Articles/11034/Working-with-more-than-one-Web-config-file
http://weblogs.asp.net/jalpeshpvadgama/archive/2011/03/23/working-with-more-then-one-web-config-files-in-asp-net-application.aspx
hope this will help you.