Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown server tag 'rsweb:ReportViewer'

I am a newbie to asp.net and trying to use report viewer 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

like image 842
jerry Avatar asked Jun 13 '11 18:06

jerry


1 Answers

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

like image 75
ibram Avatar answered Oct 06 '22 00:10

ibram