Disable web.config inheritance?
<p>I have a content management application in the root of my website, and I'm trying to use a different app (a billing application) under a sub-folder. Unfortunately, the web.config of the root site is interfering with the sub-app.</p>

<p>Is there a way to just disable web.config inheritance for a sub-folder?</p>

<p><strong>Update:</strong>
As linked by <a href="http://stackoverflow.com/users/31474/stephen-b-burris-jr">Stephen Burris</a>, using the <code>&lt;location&gt;</code> tag can prevent inheritance for part of the web config, as follows:</p>

<pre><code>&lt;?xml version="1.0"?&gt;
&lt;configuration&gt;
&lt;configSections&gt;
 ....
&lt;/configSections&gt;
&lt;location path="." inheritInChildApplications="false"&gt;
 &lt;appSettings&gt;
  ....
 &lt;/appSettings&gt;
 &lt;connectionStrings/&gt;
 &lt;system.web&gt;
  ....
 &lt;/system.web&gt;
 &lt;system.codedom&gt;
  ....
 &lt;/system.codedom&gt;
 &lt;system.webServer&gt;
  ....
 &lt;/system.webServer&gt;
&lt;/location&gt;
&lt;runtime&gt;
 ....
&lt;/runtime&gt;
&lt;/configuration&gt;
</code></pre>

<p>The <code>&lt;configSections&gt;</code> and <code>&lt;runtime&gt;</code> sections will not accept being enclosed in the  tag...so I guess this only does most of the job. Anybody know how to do it better?</p>
