当web.config中读? [英] When is web.config read?
问题描述
我在做研究关于ASP.NET管道的文章,但没有我覆盖,资源远远充分解释当机器水平和应用水平,甚至可能子应用水平,的web.config
文件的读取。
I'm doing research for an article on the ASP.NET Pipeline, but none of the resources I've covered so far adequately explain when the machine level, and application level, and possibly even sub-application level, web.config
files are read.
此外,大多数我的阅读有误导我去寻找默认的HTTP处理程序等。的machine.config
,这似乎是,在某些时候,都被神秘地更换由的web.config
在机器的水平,即在同一个配置
框架文件夹 machine.config中
。是许多文章等,让过时的,或者是这是一个非常最近的变化?或者,我可能是有想象力,认为机器层面的web.config
从的machine.config
其实继承?
Also, most of my reading has mislead me to look for default HTTP handlers etc. in machine.config
, which seems to, at some point, have been mysteriously replaced by a web.config
at the machine level, i.e. in the same config
framework folder as machine.config
. Are that many articles etc. so out of date, or was this a very recent change? Or, may I be imaginative and consider that the machine level web.config
actually 'inherits' from machine.config
?
推荐答案
的文件如何asp.net CONFIGRATION工作,我知道的是这个MSDN上最COM prehensive说明:
The most comprehensive description of how asp.net configration files work that I know of is this one at MSDN:
这是.NET 3.5框架,所以信息应该像当前,你可能会发现写的。它描述究竟如何不同的配置文件读取并合并到在相当多的细节的应用程序的运行设置。
It is written for the .NET 3.5 framework so the info should be as current as you'll likely find. It describes exactly how the various configuration files are read and merged into the runtime settings for the application in quite a lot of detail.
这篇关于当web.config中读?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!