How to disable web.config Inheritance for Child Applications in Subfolders in ASP.NET


Just found a useful FAQ about exclude some httpmodule inheritance in ASP.NET web application(from parent ASP.NET application). It demonstrate two approaches:


 1. Modify the parent web.config file to disable child app inheritance(element based)


 2. Explicitlly remove certain httpmodule in child web app web.config file.


#How to disable web.config Inheritance for Child Applications in Subfolders in ASP.NET?
http://www.aspdotnetfaq.com/Faq/how-to-disable-web-config-inheritance-for-child-applications-in-subfolders-in-asp-net.aspx


 

Comments (2)

  1. David Qian says:

    It’s a good article! Thanks for sharing!

  2. Michael says:

    Why don't Microsoft just turn off Web.config Inheritance once and for all. There are thousand of post on this subject and one of then really work.  It keeps breaking and different version of the frame work don't support the old methods.