how many web.config files can be allowed to use in an application

Posted by Sekar.C under ASP.NET on 12/31/2012 | Points: 10 | Views : 3829 | Status : [Member] | Replies : 2
Hi,
how many web.config files can be allowed to use in an application

Regards
Sekar.c



Responses

Posted by: Ranjeet_8 on: 12/31/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
You may have multiple Web.Config files in one Asp.Net Application, but only single per folder.
look at this url
http://weblogs.asp.net/jalpeshpvadgama/archive/2011/03/23/working-with-more-then-one-web-config-files-in-asp-net-application.aspx

Please Mark As Answer if this helps you.

.

Sekar.C, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Baimey on: 12/31/2012 [Member] Starter | Points: 25

Up
0
Down
Types of Config files

Web.config file is configuration file for a Web application and stores various settings for an application. An application can have a single Web.config file only.

App.config file a configuration file for a Windows application and purpose is same as Web.config has for a Web application.

Machine.config file has settings that applies to the entire machine (means all applications running on a machine).

Similar to the above answer

Maximum web.config files must not exceed numbers of subfolder + 1(i.e root folder)

Please Mark as Answer If this Helps

Sekar.C, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response