[英]HTTP Error 500.19 - Internal Server Error on ReportViewerWebControlHandler
I have been trying from past few days to run Report Viewer in my application but failed. 我在过去的几天里一直在尝试在我的应用程序中运行Report Viewer但是失败了。 The problem is that when I add
问题是,当我添加
<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" />
this handler in my web.config HTTP Error 500.19 - Internal Server Error on every page I try to access. 我的web.config HTTP错误500.19中的此处理程序 - 我尝试访问的每个页面上的内部服务器错误。
And if I remove it then it works fine but then the error occur on my reporting page 如果我删除它然后它工作正常但然后错误发生在我的报告页面上
Report Viewer Configuration Error 报告查看器配置错误
The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. 报表查看器Web控件HTTP处理程序尚未在应用程序的web.config文件中注册。 Add
加
<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
to the system.web/httpHandlers section of the web.config file, or add 到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" />
to the system.webServer/handlers section for Internet Information Services 7 or later. 到Internet Information Services 7或更高版本的system.webServer / handlers部分。
Please help me out of this problem 请帮我解决这个问题
My whole web.config 我的整个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>
Well, I can't offer an answer because I have what appears to be the same issue - I'm in the process of integrating some SSRS reports into new webpages of an existing webforms application using Microsoft.ReportViewer.WebForms. 好吧,我无法提供答案,因为我看似同样的问题 - 我正在使用Microsoft.ReportViewer.WebForms将一些SSRS报告集成到现有webforms应用程序的新网页中。 The changes run fine when running locally in debug mode, but as I was deploying to a VDEV box in preparation for another promotion to a System test environment, I made the addition in the web.config for the httphandler and that caused the 500 internal server error.
在调试模式下本地运行时,更改运行正常,但是当我正在部署到VDEV盒以准备另一次升级到System测试环境时,我在web.config中添加了httphandler并导致500内部服务器错误。 When I comment that line back out or remove it from the web.config, the app works again (not the new SSRS reporting features though).
当我将该行注释回来或从web.config中删除它时,该应用程序再次工作(尽管不是新的SSRS报告功能)。 I suspect that I have an issue somewhere in the web.config file as other developers in our org have successfully implemented similar solutions without the issue I see.
我怀疑我在web.config文件中的某个地方有一个问题,因为我们组织中的其他开发人员已经成功实现了类似的解决方案而没有我看到的问题。 We're on V 12 of the ReportViewer.
我们在ReportViewer的V 12上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.