title: IIS Config Error - This configuration section cannot be used at this path
body: <p>I am getting the below error when I try to run my website.</p>
  
  <p>The website is hosted on Windows 2012 R2.</p>
  
  <p>Config error:  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>Error Code : 0x80070021</p>
  
  <p>Config Source:</p>
  
  <pre><code> 60:     &lt;httpErrors errorMode="Detailed" /&gt;
   61:     &lt;handlers&gt;
   62:       &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0" /&gt;
  </code></pre>
  
  <p>Below is what all I have tried:</p>
  
  <ol>
  <li>Installed .Net 3.5 using "Add features and roles" in IIS</li>
  <li><p>In the applicationHost file I have made the below code changes:</p>
  
  <p>Changed sections handlers', modules, anonymousAuthentication,          basicAuthentication,etc  overrideModeDefault from "Deny" to "Allow".</p></li>
  <li><p>Have done "HTTP Activation" in .Net 3.5 as well as 4.5.</p></li>
  </ol>
  
  <p>Below is my web config file handler code:</p>
  
  <pre><code>&lt;handlers&gt;
    &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0"/&gt;
    &lt;remove name="OPTIONSVerbHandler"/&gt;
    &lt;remove name="TRACEVerbHandler"/&gt;
    &lt;add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/&gt;
  &lt;/handlers&gt;
  </code></pre>
  
  <ol start="4">
  <li><p>Installed all the features in features windows in this path:
  Internet Information Service --> World Wide Web Services --> Application development features --> All but CGI have been enabled.</p></li>
  <li><p>In feature delegation ASP was Read Only earlier, I have changed it to Read/Write</p></li>
  <li><p>Unlocked handlers using command prompt</p></li>
  </ol>
  
  <p>But I am still unable to get rid of the error. 
  My local instance is working perfectly fine. Also, I have a development server on which this website is working, only in my production server I am getting this error. </p>
  
  <p>Please help me to find out what might be causing this problem.</p>