title: HTTP Error 500.19 in IIS 10 and Visual Studio 2017
body: <p>I know that similar questions have been asked but their answer are not solving my problem.</p>
  
  <blockquote>
    <blockquote>
      <p>HTTP Error 500.19 - Internal Server Error </p>
      
      <p>The requested page cannot
      be accessed because the related configuration data for the page is
      invalid.<br>
      Detailed Error Information: Module     IIS Web Core  Notification BeginRequest  Handler    Not yet determined  Error Code     0x80070021
      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>
    </blockquote>
    
    <p>Config File   \?\C:\mySite\web.config </p>
    
    <p>Requested URL      <a href="http://localhost:80/mySite/login" rel="noreferrer">http://localhost:80/mySite/login</a></p>
    
    <p>Physical Path      C:\mySite\login </p>
    
    <p>Logon Method       Not yet determined </p>
    
    <p>Logon User     Not yet determined   </p>
    
    <p>Config Source:    </p>
    
    <p>65:     <code>&lt;/staticContent&gt;</code>   </p>
    
    <p>66:     <code>&lt;handlers&gt;</code>    </p>
    
    <p>67: </p>
  </blockquote>
  
  <pre><code>&lt;add name="ReportViewerWebControlHandler"
      &gt; preCondition="integratedMode" verb="*"
      &gt; path="Reserved.ReportViewerWebControl.axd"
      &gt; type="Microsoft.Reporting.WebForms.HttpHandler,
      &gt; Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral,
      &gt; PublicKeyToken=b03f5f7f11d50a3a" /&gt;
  </code></pre>
  
  <p>I checked in Windows features also and they look alright.</p>
  
  <p>I've tried to set <code>overrideModelDefault</code> to <code>Allow</code> and to remove <code>WebServiceHandlerFactory</code> from applicationhost.congif but no result. </p>
  
  <p>I'm using Visual Studio 2017 and IIS 10.</p>
  
  <p>Any other ideas how to solve this?</p>