This is a migrated thread and some comments may be shown as answers.

ReportViewer falis to instantiate

3 Answers 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 03 Apr 2019, 11:20 AM

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?

3 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 08 Apr 2019, 08:14 AM
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
0
Paul
Top achievements
Rank 1
answered on 08 Apr 2019, 08:31 AM
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"?!
0
Silviya
Telerik team
answered on 11 Apr 2019, 08:07 AM
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
Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Paul
Top achievements
Rank 1
Share this question
or