Couresy of:
shekhar_shashi
SOURCES:
http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_21357027.html?sfQueryTermInfo=1+c+web.config
This is the order in which the ASP.Net worker process reads configuration files is - Machine, Site, Application, SubFolder.
'machine.config' is the only mandatory ASP.Net configuration file - all the rest are optional though you'll need the other web.config files for most of your applications.
Here are the details:
1. Machine
File Name: machine.config
Location: Typically it is found in your operating system's sub directory for Microsoft.Net. My Win2000 machine has this file at this location:
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG
Generally you'll put settings that are applicable to all ASP.Net web applications running on your machine here.
Helpful Tip:This file has excellent documentation and samples for the configuration settings that you can do.
2. Site
File Name: web.config
Location: Typically the root web publishing folder. My machine has it at this location:
C:\Inetpub\wwwroot\
3. Application
File Name: web.config
Location: C:\Inetpub\wwwroot\MyWebApp etc. etc.
If you use VS.Net, it creates and puts this file in your web application folder.
4. SubFolder
File Name: web.config
Location: C:\Inetpub\wwwroot\MyWebApp\CustomerWebPages etc.
You can add this configuration to any subfolders in your web application to override the settings for the web pages and controls inside the folder.
ASP.Net worker process reads values from top to bottom and the settings in a lower configuration file override the ones at an upper level. However, not all configuration settings can be put at all levels. Some configruation settings like 'ProcessModel' settings have to be only at machine.config. You cannot put Authentication settings at Subfolder level (if you do, it will be ignored). It should be at Application Level web.config.
While working with config files, it is very important to understand this hierarchy.
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 month ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!