Hi,
As you are aware we have a web.config file for each web application (may be many more, it doesn't matter) and presume that this web.config file inherits from Machine.config file located at location "Microsoft .net/Framework/version/config". But at the same path another web.config file is found and I have read some articles claiming that application's web.config file inherits the properties from that web.config file located at above location.
So can you please let me know it is correct?
Loading
Sandeep Singh ShekhawatPosted May 19, 2013, 2:06 PM
AS you know that we have two file (Machine.config and web.config) on same location "Microsoft .net/Framework/version/config".
You saying that application's web.config file inherits the properties from that web.config file located at above location.
It is correct. because
The Web.config file for the server is stored in the same directory as the Machine.config file and contains default values for most of the system.web configuration sections and each ASP.NET application inherits default configuration settings from the root Web.config file, you need to create Web.config files only for settings that override the default settings.
Source MSDN