Friday, 29 June 2012

Web.config Conflict: Overriding root Application Web.Config Section

Whenever we have applications created as follows:
App1 is root application with its local web.conf as web config 1
App2 is another application configured under root application App1 with its local web.config web config 1
When application configured in this fashion we have web.config conflict for IIS. So to overcome this issue we may need to do to fix this issue.
You can add the element with the “inheritInChildApplications” attribute to the root web.config. This attribute will prevent child applications inherit specified configuration from the root web.config.
The attribute must be placed in the section of the web.config. It looks like this:

No comments:

Post a Comment