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 81 of 164    Print  
one application can have only one Web config file - true or false

  
Total Answers and Comments: 8 Last Update: June 29, 2009     Asked by: Gajalakhsmi 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 27, 2006 07:38:01   #1  
Pronobesh        

RE: one application can have only one Web config file ...
this statement is partially true if you have more than one page you can create more than one web.config file.it's upto you.
 
Is this answer useful? Yes | No
October 04, 2006 07:33:42   #2  
balachandar        

RE: one application can have only one Web config file ...
its true one application have only one web.config file
 
Is this answer useful? Yes | No
October 10, 2006 06:59:45   #3  
Harit Pandya        

RE: one application can have only one Web config file ...

An asp.net application is a virtual directory that you make on a web server. This application will take the settings of machine.config file if a web.config file is not available in that directory. Now if you create a sub directory inside a virtual directory and place another web.config file in the sub directory then the sub directory will take the settings of the web.config file in that particular directory.

So my answer is that an application can have more than one web.config file but they should be in different directories of that web application and also the sub directory that uses it should be a virtual directory


 
Is this answer useful? Yes | No
December 25, 2006 02:37:59   #4  
Ali        

RE: one application can have only one Web config file ...

Depends But YES


 
Is this answer useful? Yes | No
February 14, 2008 05:53:25   #5  
lalitha1024 Member Since: December 2005   Contribution: 1    

RE: one application can have only one Web config file - true or false
Depends.... but answer is false because we can have more than one web.config files for an application. web.config file is unqiue for folder. one application can contain many folders so one application can contain many web.config files.
 
Is this answer useful? Yes | No
March 05, 2008 00:04:16   #6  
ghanidhar Member Since: March 2007   Contribution: 1    

RE: one application can have only one Web config file - true or false
Actually it is False.If your web application has a well defined folder structure you can have as many web.configs as that of your flode structure.Lets Say For Example The Admin Folder in the application Can contain a web.config with all settings for the admin Role. If you have members you can have members folders with all the settings related to Members in another web.config
 
Is this answer useful? Yes | No
March 12, 2008 04:06:55   #7  
deepak81 Member Since: February 2008   Contribution: 3    

RE: one application can have only one Web config file - true or false
yes one application can have only one web config file.
 
Is this answer useful? Yes | No
June 29, 2009 17:58:58   #8  
arora_simi Member Since: December 2008   Contribution: 1    

RE: one application can have only one Web config file - true or false
We can use more than one web.config file to meet the different security and other configuration requirements of different directories and in any case web.config file of subdirectory will take the precedence over file of root directory.
 
Is this answer useful? Yes | No


 
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