Hi,
I want to know that How many web.config files that can be there an ASP.NET application ?
Loading
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.
MuthuMari MPosted Apr 12, 2012, 5:10 AM
Gohil JayendrasinhPosted Apr 12, 2012, 3:18 AM
Hi
You can add more then one web.config file
Ex.
http://www.codeproject.com/Articles/11034/Working-with-more-than-one-Web-config-file
SenthilkumarPosted Apr 11, 2012, 11:18 PM
.Net allows to create more than one web.config file in the asp.net application.
Usually when you create the application, it will have one default web.config file in the root of the application.
But you can have one web.config file per folder and it will have the highest precdience from the inner most folder.
suppose if you have five folders in the application then you have have web.config files in the each of the folder. The web pages in the folder will take the configurations from that folder web.config file and if there is no matching config files then it will look into the next level.
Hope you this will help.