Friday, January 25, 2008

ASP.NET 2.0 Web.config sub directory inheritance

http://dotnet.org.za/jpfouche/archive/2007/01/17/asp-net-web-config-inheritance-deploying-nested-web-applications-under-the-root-of-a-website.aspx

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

http://communityserver.org/forums/p/480109/549905.aspx

Even though in MSDN it says it should work :(

http://msdn2.microsoft.com/en-us/library/ms228104(VS.80).aspx

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.

http://msdn2.microsoft.com/en-us/library/ms178685(VS.80).aspx

No comments: