You simply cannot use <location path="." inheritInChildApplications="false">
in certain parts of your web.config in order to tell it to ignore inheritance of certain sections (you'll get errors such as 'inheritInChildApplications attribute is not declared' and so fourth if you try putting it in sections where it's not supported).
For example you can't use it before or inside <configSections>
. You can for example wrap your <system.web>
tag in the location tag but I need to stop inheritance of anything in <configSections>
and I do not see a way to do this.
My sub application is inheriting some of the same config settings that my parent app's web config has in IIS 7 in the tree. I see no way to put a <clear/>
either in the configSecion tag as it's an invalid tag if you try to add it there.
So how the heck do you tell it to ignore that section?!?!