Hi,
I want to know that How many web.config files that can be there an ASP.NET application ?
Web.config files
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
SenthilkumarRank #387 · 6.5K reputationPosted Apr 11, 2012, 7:18 PM EDT
.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.
Gohil JayendrasinhRank #490 · 5K reputationPosted Apr 11, 2012, 11:18 PM EDT
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
MuthuMari MRank #5,738 · 288 reputationPosted Apr 12, 2012, 1:10 AM EDT