title: Stop inheriting web.config from parent ASP.NET application in IIS 7.5
body: <p>We have deployed an ASP.NET Website (App 1) in IIS 7.5. Then under that application create another ASP.NET application (App 2). But in App 2, I don't want to inherit the <code>web.config</code> from App 1.</p>
  
  <p>If I try to do the following in App 1's, <code>web.config</code>:</p>
  
  <pre><code>&lt;location path="." inheritInChildApplications="false"&gt; 
      &lt;configSections&gt; 
  
      &lt;!-- etc --&gt;
  
      &lt;/configSections&gt;
  &lt;/location&gt;
  </code></pre>
  
  <p>it reports the error: </p>
  
  <blockquote>
    <p><strong>Config Error</strong> The configuration section 'configSections' cannot be
    read because it is missing a section
    declaration</p>
  </blockquote>
  
  <p>If I try to do:</p>
  
  <pre><code>&lt;remove name = "system.web.extensions" /&gt; 
  </code></pre>
  
  <p>it still reports the same error:</p>