Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/301.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# HTTP错误500.19-ReportViewerWebControlHandler上的内部服务器错误_C#_Asp.net_Reportviewer_Report Viewer2012 - Fatal编程技术网

C# HTTP错误500.19-ReportViewerWebControlHandler上的内部服务器错误

C# HTTP错误500.19-ReportViewerWebControlHandler上的内部服务器错误,c#,asp.net,reportviewer,report-viewer2012,C#,Asp.net,Reportviewer,Report Viewer2012,过去几天我一直在尝试在我的应用程序中运行Report Viewer,但失败了。 问题是当我添加 <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebF

过去几天我一直在尝试在我的应用程序中运行Report Viewer,但失败了。 问题是当我添加

<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" />

my web.config HTTP Error 500.19中的此处理程序-我尝试访问的每个页面上的内部服务器错误

如果我删除了它,那么它可以正常工作,但是错误会出现在我的报告页面上

报告查看器配置错误

尚未在应用程序的Web.config文件中注册报表查看器Web控件HTTP处理程序。加

<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> 

到web.config文件的system.web/httpHandlers部分,或添加

<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" />

Internet信息服务7或更高版本的system.webServer/handlers部分

请帮我解决这个问题

我的整个web.config

<?xml version="1.0" encoding="utf-8"?>

<configuration>
  <connectionStrings>
 <add name="courierdbConnectionString" connectionString="Data Source=.\MSSQLSERVER2014;Initial Catalog=ushupk_courier;User ID= ushupk_ushupk;Password=Fahad123!@#" providerName="System.Data.SqlClient" />

  </connectionStrings>
  <system.web>
    <httpHandlers>
  <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" />
    </httpHandlers>
    <sessionState timeout="5400" />
    <compilation targetFramework="4.5">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
        <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
        <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
      </assemblies>
      <buildProviders>
        <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
      </buildProviders>
    </compilation>
    <httpRuntime targetFramework="4.5" />
    <customErrors mode="Off" />
      </system.web>
      <system.webServer>
      <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
      <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <!--<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" />-->
    </handlers>
      </system.webServer>
      <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
        <assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
      </runtime>
    </configuration>

好吧,我不能提供答案,因为我有一个似乎相同的问题-我正在使用Microsoft.ReportViewer.webforms将一些SSRS报告集成到现有webforms应用程序的新网页中。在调试模式下本地运行时,这些更改运行良好,但当我部署到VDEV框以准备再次升级到系统测试环境时,我在web.config中为httphandler添加了内容,这导致了500内部服务器错误。当我将该行注释掉或从web.config中将其删除时,该应用程序将再次工作(但不是新的SSRS报告功能)。我怀疑我在web.config文件中的某个地方遇到了问题,因为我们组织中的其他开发人员已经成功地实现了类似的解决方案,而没有我看到的问题。我们在ReportViewer的第12节


好吧,我不能提供答案,因为我有一个似乎是相同的问题-我正在使用Microsoft.ReportViewer.webforms将一些SSRS报告集成到现有webforms应用程序的新网页中。在调试模式下本地运行时,这些更改运行良好,但当我部署到VDEV框以准备再次升级到系统测试环境时,我在web.config中为httphandler添加了内容,这导致了500内部服务器错误。当我将该行注释掉或从web.config中将其删除时,该应用程序将再次工作(但不是新的SSRS报告功能)。我怀疑我在web.config文件中的某个地方遇到了问题,因为我们组织中的其他开发人员已经成功地实现了类似的解决方案,而没有我看到的问题。我们在ReportViewer的第12节