微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

未知服务器标签\'rsweb:ReportViewer\'

如何解决未知服务器标签\'rsweb:ReportViewer\'

| 我是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,PublicKeyToken=b03f5f7f11d50a3a\" namespace=\"Microsoft.Reporting.WebForms\" tagprefix=\"rsweb\" %>
它给了我这个错误: 本页上不允许使用控件类型\'Microsoft.Reporting.WebForms.ReportViewer \'。该类型未注册为安全的。 当我将aspx页面中的代码更改为此
<%@ Register assembly=\"Microsoft.ReportViewer.WebForms,PublicKeyToken=b03f5f7f11d50a3a\" namespace=\"Microsoft.Reporting.WebForms.ReportViewer\" tagprefix=\"rsweb\" %>
我得到这个: 处理时发生错误。未知的服务器标签\'rsweb:ReportViewer \'。 谁能帮我?谢谢     

解决方法

        您需要安装ReportViewer,可以在Microsoft下载中找到它。 http://www.microsoft.com/downloads/zh-CN/details.aspx?FamilyID=a941c6b2-64dd-4d03-9ca7-4017a0d164fd     

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。