In an ASP.NET application can we add more than one WEB.CONFIG files? Can it run?

Questions by sbehera02   answers by sbehera02

Showing Answers 1 - 12 of 12 Answers

Prashanth

  • Dec 16th, 2006
 

yes we can add more than one Web.Config files for each folder in ASP.net

  Was this answer useful?  Yes

shree

  • Dec 24th, 2006
 

i will explain this with folder and sub folder.When we define the web.config for the folder then this will be applicable for the applications in the folder.At the same time if we define the web.config for the applications in the sub folder then it will be applicable for the sub folder applications.So any sub folder application derives it properties from the folder application web.config and if some of the parameters are overide in the sub folder application then the sub folder appln will take the its own web.config parameters

  Was this answer useful?  Yes

kruti

  • Jan 18th, 2007
 

web.config can be in each folder.folder level has highest priority.

the main web.config can be over loaded by folder level web.config and machin.config is over loaded by main web.config.

the main web.config is at solution level.

  Was this answer useful?  Yes

mepoo

  • Jan 31st, 2007
 

Yes.There can be multiple web.config files in an ASP.NET application but they should be in the different folders.For the entire application there can be only one main Web.Config.If you assign membership and roles to an application you can see a specific web.config will get created for the folder.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions