【问题标题】:Unknown server tag 'rsweb:ReportViewer'未知的服务器标签“rsweb:ReportViewer”
【发布时间】:2011-06-13 18:25:14
【问题描述】:

我是 asp.net 的新手,并尝试在 sharepoint 中使用报表查看器控件来查看我的报表。

在我的 web.config 文件中,我添加了这一行:

<SafeControl Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms.ReportViewer" TypeName="*" Safe="True"/>

在我的 aspx 页面中我注册了程序集

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

它给了我这个错误:

此页面上不允许使用控件类型“Microsoft.Reporting.WebForms.ReportViewer”。该类型未注册为安全类型。

当我将我的 aspx 页面中的代码更改为此

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms.ReportViewer" tagprefix="rsweb" %>

我明白了:

处理过程中发生错误。未知的服务器标签“rsweb:ReportViewer”。

谁能帮帮我?谢谢

【问题讨论】:

  • 您是否使用了正确版本的 ReportViewer?我知道有 9.0 和 10.0。当我第一次开始使用它时,这让我大吃一惊。

标签: c# .net asp.net reporting-services reportviewer


【解决方案1】:

您需要安装 ReportViewer,它可以在微软下载中找到。

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a941c6b2-64dd-4d03-9ca7-4017a0d164fd

【讨论】:

  • 谢谢!这正是我所需要的。为我节省了大量时间和挫败感。
猜你喜欢
  • 1970-01-01
  • 2011-07-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多