We have over 20 nested applications on various sites. Web.Config inheritance is alomost never an issue: Every now and then I'll upload a new version of an app, and get the familiar 'the entry 'yourconnectionstring' has already been added, as somehting has
cause config inheritance to start happening.
I used to think that if the mysite.pdb file or the mysite.xml files existed in the bin directory it would triggere config inheritance. But today even deleting them is not helping.
I know there are many posts on how to fix this error, but they all say to clear the connectionstring section, or use <location path="." inheritInChildApplications="false">. But why do I need this at randomo. Normally this doesn't exist in our web.config
files, and we don't get this error, and these sites have been around for years.
So my quesiton is what triggers inheritance to just start happening?
sheamus
Member
2 Points
13 Posts
What triggers Web.Config inheritance?
Feb 27, 2013 04:17 PM|LINK
We have over 20 nested applications on various sites. Web.Config inheritance is alomost never an issue: Every now and then I'll upload a new version of an app, and get the familiar 'the entry 'yourconnectionstring' has already been added, as somehting has cause config inheritance to start happening.
I used to think that if the mysite.pdb file or the mysite.xml files existed in the bin directory it would triggere config inheritance. But today even deleting them is not helping.
I know there are many posts on how to fix this error, but they all say to clear the connectionstring section, or use <location path="." inheritInChildApplications="false">. But why do I need this at randomo. Normally this doesn't exist in our web.config files, and we don't get this error, and these sites have been around for years.
So my quesiton is what triggers inheritance to just start happening?
funluckykitt...
Participant
1469 Points
1547 Posts
Re: What triggers Web.Config inheritance?
Feb 27, 2013 04:39 PM|LINK
Take a look at this article online. It answered a lot of my questions. http://weblogs.asp.net/jgalloway/archive/2012/01/17/10-things-asp-net-developers-should-know-about-web-config-inheritance-and-overrides.aspx
Best of luck...