100% Australian Windows Web Hosting
  • Knowledge Base

Web.Config Inheritance 

Was this helpful? (1) (0)

By default, ASP.NET applications setup in sub directories will inherit from any web.config file that exists in the root web site folder.

This can cause conflicts as the sub application will attempt to load any assemblies referenced in the root web.config from the sub application's own bin directory, causing a file not found error.

To prevent the sub application from inheriting the root web.config, the root web.config <system.web> section can be wrapped with a location tag as follows:

  <location path="." inheritInChildApplications="false"> 





Copyright © 2002 - 2021 StudioCoast Pty Ltd   |   ABN: 53 143 039 070