Unknown server tag 'rsweb: ReportViewer'

I am new to asp.net and am trying to use the report viewer for my reports on 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"/> 

On 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" %> 

This 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 on 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 while processing. Unknown server tag "rsweb: ReportViewer".

Can anyone help me? Thanks

+6
source share
1 answer

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

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

+5
source

Source: https://habr.com/ru/post/890428/


All Articles