can we use multiple web config file in a asp.net application
can we use multiple web config file in a asp.net application ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Jul 6, 2012, 8:18 AM
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.
Satyapriya NayakPosted Jul 6, 2012, 7:18 AM
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
praveen mauryaPosted Jul 6, 2012, 7:09 AM
if your asp.net application have many folders then you can use web.config for each folder in it