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
jerry source share