title: HTTP Error 500.19 and error code : 0x80070021
body: <p>I have a simple webAPI build by Visual Studio 2013. It works well when I run it from VS13 but when I copy the project in local IIS it gives me the following error.</p>
  
  <blockquote>
    <p>HTTP Error 500.19 - Internal Server Error The requested page cannot be
    accessed because the related configuration data for the page is
    invalid.</p>
  </blockquote>
  
  <p><strong>Detailed Error Information:</strong></p>
  
  <p><strong>Module</strong>     IIS Web Core</p>
  
  <p><strong>Notification</strong>       BeginRequest</p>
  
  <p><strong>Handler</strong>    Not yet determined</p>
  
  <p><strong>Error Code</strong>     0x80070021</p>
  
  <p><strong>Config Error</strong>       This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".</p>
  
  <p><strong>Config File</strong>    \?\C:\inetpub\wwwroot\APITeslin\web.config</p>
  
  <blockquote>
    <p>Config Source:</p>
  </blockquote>
  
  <pre><code>36:   &lt;system.webServer&gt;  
  37:     &lt;handlers&gt;  
  38:       &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0" /&gt;
  </code></pre>