title: HTTP Error 500.19 - Internal Server Error - system.webServer/httpErrors is missing a section declaration
body: <p>I have the following:</p>
  
  <pre><code>  &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.5"/&gt;
      &lt;httpRuntime targetFramework="4.5"/&gt;
      &lt;customErrors mode="Off"/&gt;   &lt;/system.web&gt;
  </code></pre>
  
  <p>and also:</p>
  
  <pre><code>&lt;system.webServer&gt;
      &lt;handlers&gt;
        &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit"/&gt;
        &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit"/&gt;
        &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0"/&gt;
        &lt;remove name="OPTIONSVerbHandler"/&gt;
        &lt;remove name="TRACEVerbHandler"/&gt;
        &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0"/&gt;
        &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0"/&gt;
        &lt;add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/&gt;
      &lt;/handlers&gt;
    &lt;/system.webServer&gt;
  </code></pre>
  
  <p>When I run my application I am getting an error page saying:</p>
  
  <pre><code>HTTP Error 500.19 - Internal Server Error
  The requested page cannot be accessed because the related configuration data for the page is invalid.
  
  Detailed Error Information:
  Module     CustomErrorModule
  Notification       SendResponse
  Handler    Not yet determined
  Error Code     0x80070490
  Config Error       The configuration section 'system.webServer/httpErrors' cannot be read because it is missing a section declaration
  </code></pre>
  
  <p>Can someone help explain this for me. </p>
  
  <p>I thought with the   that I didn't need to have a custom error page. However everything I read tells me that the solution is to add a custom error page.</p>