GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 96 of 164    Print  
In an ASP.NET application can we add more than one WEB.CONFIG files? Can it run?

  
Total Answers and Comments: 4 Last Update: January 31, 2007     Asked by: sbehera02 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: mepoo
 
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.

Above answer was rated as good by the following members:
surendra_sahu786
December 16, 2006 11:30:54   #1  
Prashanth        

RE: In an ASP.NET application can we add more than one...
yes we can add more than one Web.Config files for each folder in ASP.net
 
Is this answer useful? Yes | No
December 24, 2006 02:58:02   #2  
shree        

RE: In an ASP.NET application can we add more than one...

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


 
Is this answer useful? Yes | No
January 18, 2007 05:49:23   #3  
kruti        

RE: In an ASP.NET application can we add more than one...

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.


 
Is this answer useful? Yes | No
January 31, 2007 17:00:59   #4  
mepoo Member Since: January 2007   Contribution: 5    

RE: In an ASP.NET application can we add more than one...
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.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape