开发者

Unknown server tag 'rsweb:ReportViewer'

I am a newbie to asp.net and trying to use report v开发者_Go百科iewer control for my reports in sharepoint.

In my web.config file i added this line:

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

In my aspx page I registered the assembly

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

It gives me this error:

The control type 'Microsoft.Reporting.WebForms.ReportViewer' is not allowed on this page. The type is not registered as safe.

When I change the code in my aspx page to this

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

I get this:

An error occurred during the processing of . Unknown server tag 'rsweb:ReportViewer'.

Can anyone help me? Thanks


You need to install the ReportViewer, that can be found on microsoft downloads.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜