ReportViewer falis to instantiate

4 posts, 0 answers
  1. Paul
    Paul avatar
    2 posts
    Member since:
    Apr 2019

    Posted 03 Apr Link to this post

    We have successful integrated Telerik Reporting into our product and this is running as expected at a number of client sites.  However, the integration is failing at a single client site. Our solution uses the ReportViewer control which we've added to a basic .aspx page. As part of our investigation we removed all the code-behind, and established that it was the following tag that was preventing the page from loading.

    <telerik:ReportViewer runat="server" ID="ReportViewer1"Width="100%" Height="700px" BorderStyle="None" >    </telerik:ReportViewer>

    The error message doesn't reveal anything other than an error has occurred.  

    The .aspx page exists within a SharePoint site, and we have confirmed that the<SafeControl> tags are correct, and that the Telerik DLLs are correctly present in the GAC.  As part of the investigation we installed the Telerik Designer and ran the failing reports successfully in the designer, preview the clients data in the report.  

    I would guess there is some security setting in the browser that is preventing the ReportViewer control from loading.  Is there any configuration or restrictions for this component?  Are there any Telerik logs that may reveal what the error is?

  2. Silviya
    Admin
    Silviya avatar
    399 posts

    Posted 08 Apr Link to this post

    Hello Paul,

    Based on the provided information, my assumption is that you are currently using our legacy ASP.NET Report Viewer for displaying reports. I strongly advise migrating to the newer Html5 Web Forms Report Viewer that is fully maintained and upgraded constantly - Migrate to the HTML5 Viewer from the old ASP.NET WebForms ReportViewer control KB article.

    Please check the project settings and test to configure the viewer manually:
    1. Add the required Telerik Reporting assemblies;
    2. Register the assemblies and the control on the page (Telerik.Reporting.dll and Telerik.ReportViewer.WebForms.dll);
    3. Add handlers registrations in both system.web and system.webServer;

    The following help articles contain details about the above-suggested settings and examples of how to use the product in SharePoint:
    Best Regards,
    Silviya
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Paul
    Paul avatar
    2 posts
    Member since:
    Apr 2019

    Posted 08 Apr in reply to Silviya Link to this post

    Can you confirm that the namespace in the article posted above is correct?  

    <SafeControl Assembly="Telerik.ReportViewer.WebForms, Version=x.x.x.xxxx, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer" TypeName="*" Safe="True" />

    The line above states "Telerik.ReportViewer" instead of "Telerik.ReportViewer.WebForms"?!
  4. Silviya
    Admin
    Silviya avatar
    399 posts

    Posted 11 Apr Link to this post

    Hello Paul,

    Yes, it should be configured as it is mentioned in the documentation. Please test it and let us know if you face issues.

    Regards,
    Silviya
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top