title: HTTP Error 500.19 - Internal Server Error on ReportViewerWebControlHandler
body: <p>I have been trying from past few days to run Report Viewer in my application but failed.
  The problem is that when I add</p>
  
  <pre><code>&lt;add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /&gt;
  </code></pre>
  
  <p>this handler in my web.config HTTP Error 500.19 - Internal Server Error on every page I try to access.</p>
  
  <p>And if I remove it then it works fine but then the error occur on my reporting page</p>
  
  <p><strong>Report Viewer Configuration Error</strong></p>
  
  <p>The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add </p>
  
  <pre><code>&lt;add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /&gt; 
  </code></pre>
  
  <p>to the system.web/httpHandlers section of the web.config file, or add </p>
  
  <pre><code>&lt;add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /&gt;
  </code></pre>
  
  <p>to the system.webServer/handlers section for Internet Information Services 7 or later.</p>
  
  <p>Please help me out of this problem</p>
  
  <p>My whole web.config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;configuration&gt;
    &lt;connectionStrings&gt;
   &lt;add name="courierdbConnectionString" connectionString="Data Source=.\MSSQLSERVER2014;Initial Catalog=ushupk_courier;User ID= ushupk_ushupk;Password=Fahad123!@#" providerName="System.Data.SqlClient" /&gt;
  
    &lt;/connectionStrings&gt;
    &lt;system.web&gt;
      &lt;httpHandlers&gt;
    &lt;add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" /&gt;
      &lt;/httpHandlers&gt;
      &lt;sessionState timeout="5400" /&gt;
      &lt;compilation targetFramework="4.5"&gt;
        &lt;assemblies&gt;
          &lt;add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /&gt;
          &lt;add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
          &lt;add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
          &lt;add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;
          &lt;add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" /&gt;
          &lt;add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" /&gt;
          &lt;add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /&gt;
        &lt;/assemblies&gt;
        &lt;buildProviders&gt;
          &lt;add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /&gt;
        &lt;/buildProviders&gt;
      &lt;/compilation&gt;
      &lt;httpRuntime targetFramework="4.5" /&gt;
      &lt;customErrors mode="Off" /&gt;
        &lt;/system.web&gt;
        &lt;system.webServer&gt;
        &lt;httpErrors errorMode="Detailed" /&gt;
          &lt;asp scriptErrorSentToBrowser="true"/&gt;
        &lt;validation validateIntegratedModeConfiguration="false" /&gt;
      &lt;handlers&gt;
        &lt;!--&lt;add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /&gt;--&gt;
      &lt;/handlers&gt;
        &lt;/system.webServer&gt;
        &lt;runtime&gt;
      &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
            &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" culture="neutral" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" /&gt;
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
        &lt;/runtime&gt;
      &lt;/configuration&gt;
  </code></pre>