Web config.
Is it possible to add more than one Web config. in our project?
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 Mar 5, 2012, 3:50 AM
Yes you can but in differant location in project.
please refer, it is very good article.
http://weblogs.asp.net/gunnarpeipman/archive/2009/06/03/visual-studio-2010-multiple-web-config-versions.aspx
hope this help.
SenthilkumarPosted Mar 5, 2012, 12:25 AM
The root level web config file is default config file. Every folder can have only one web.config file.
The inner level web.config file will take the precedence to use that level. If it is not found then it will find the outer level.
The variable set the in the root level can be overriden in the folder level. When the asp.net pages use that variable then it will try to use with that folder web config file.