Friday, January 25, 2008

ASP.NET 2.0 Web.config sub directory inheritance

It appears that ASP.NET provides you with the tools to control upwards inheritance, but not downwards. If you look at MSDN, there are ways to "block" certain setting s from a parent web.config. so as to prevent changes in the child. However, as far as I can see, there are no ways to block the inheritance, period from the child.

However for code sub directories, it doesnt' help and appears to be a bug in ASP.NET 2.0

Even though in MSDN it says it should work :(

For App_Code directories, you have to create the subdirectories. (A limitation).

This page describes the ins and outs of the web.config File Hierachy and Inheritance.

No comments: