我使用asp.net mvc 2,添加了带有reportviewer控件的webform。
web.config 文件看起来
<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting`enter code here`.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b0`enter code here`3f5f7f11d50a3a" />
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="Reserved.ReportViewerWebControl.axd" path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
IIS 配置为链接
http://otkFounder。 blogspot.com/2007/11/solving-reportviewer-rendering-issue-on.html
但我仍然有错误
报告查看器配置错误
报表查看器 Web 控制 HTTP 处理程序尚未在应用程序的 web.config 文件中注册。添加 到 Internet Information Services 7 或更高版本的 system.webServer/handlers 部分。
I use asp.net mvc 2, added webform with reportviewer controls.
The web.config file looks
<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting`enter code here`.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b0`enter code here`3f5f7f11d50a3a" />
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="Reserved.ReportViewerWebControl.axd" path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
IIS is configured as a link
http://otkfounder.blogspot.com/2007/11/solving-reportviewer-rendering-issue-on.html
But I still have the error
Report Viewer Configuration Error
The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add <add verb="" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.web/httpHandlers section of the web.config file, or add <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.webServer/handlers section for Internet Information Services 7 or later.
发布评论
评论(1)
这就是我们所拥有的 - 它应该支持 IIS 6 和 IIS7+
我认为您已经引用了Reserved.ReportViewerWebControl.axd(Reporting Services 2005)的v9
编辑:请注意,从v10开始,RdlBuildProvider现在位于Microsoft.ReportViewer.WebForms中,而不是位于Microsoft.ReportViewer中。常见的
Here's what we have - it should support both IIS 6 and IIS7+
I think you've got a reference to v9 of Reserved.ReportViewerWebControl.axd (Reporting Services 2005)
Edit : Note that as of v10 the RdlBuildProvider is now in Microsoft.ReportViewer.WebForms not in Microsoft.ReportViewer.Common