error when trying to add CrystalReportViewer RRS feed

  • Question

  • User-1210839387 posted

    using asp.net/vb.net 2005

    I opened the ToolBox and trying to add a CrystalReportViewer (which is visible in the Toolbox) to my .aspx page but when I do so I am getting the follow error


    Control cannot be created because Visual Studio cannot find the control's type in the control assembly


    Does this mean that the Crystal Report dll needs to be added to the GAC or be added as a private assembly.  I'm a bit confused why the CrystalReportsViewer would appear as an option in the toolbox when the assembly is missing



    Friday, November 4, 2011 10:42 AM


  • User-608283337 posted

    register the ReportViewer on the page where you have the report viewer control

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

    and then call it like this

    <rsweb:ReportViewer ...

    hope this helps.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 4, 2011 11:07 AM