Error loading the report viewer's templates telerikReportViewerTemplate-15.1.21.716.html

1 Answer 1609 Views
.NET Core Report Viewer - Angular
Zaw
Top achievements
Rank 1
Veteran
Zaw asked on 29 Jul 2021, 08:59 AM

Hello

I'm now trying to use Telerik report with Angular and .Net Core 3.1 API.

I create a simple trdp file testing, I got below error when open report.

Error loading the report viewer's templates. 
(trvTemplateUrl = 'https://localhost:5001/api/reports/resources/templates/telerikReportViewerTemplate-15.1.21.716.html/').

In browser developer tool, the response of https://localhost:5001/api/reports/resources/templates/telerikReportViewerTemplate-15.1.21.716.html/
{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.4","title":"Not Found","status":404,"traceId":"|b64dba21-4b4e19b16ff25004."}

I found this html under C:\Program Files (x86)\Progress\Telerik Reporting R2 2021\Html5\ReportViewer\templates.
Do I need to copy these html to my project ? 

Other report api requests like formats, clients, sessionTimeout, parameters, instances, documents, info are working well without error. 
Below is sample response of https://localhost:5001/api/reports/clients/4f2581fd685/instances/f7bdb99a53a/documents/03f002a37748eb4d9ae868/info
{"documentReady":true,"pageCount":0,"documentMapAvailable":false,"bookmarkNodes":null,"documentMapNodes":[],"containsFrozenContent":false,"renderingExtensions":[{"name":"PDF","localizedName":"Acrobat (PDF) file"},{"name":"CSV","localizedName":"CSV (comma delimited)"},{"name":"RTF","localizedName":"Rich Text Format"},{"name":"IMAGE","localizedName":"TIFF file"}]}

My angular report viewer version is "@progress/telerik-angular-report-viewer": "^13.21.716",

Please help.

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 02 Aug 2021, 03:00 PM

Hello Zaw,

Such error is thrown when the Telerik Reporting version used in the Reporting REST service project and the Angular Report Viewer version are not matching. All Telerik Reporting packages, references, scripts, templates, etc. should match in version. Since the report viewer package is version 13.21.716, the Telerik Reporting version in the REST API project should be 15.1.21.716.

For more information, please see the Error Loading the Report Viewers Templates KB article.

Thank you for using Telerik Reporting!

Regards,
Dimitar
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Zaw
Top achievements
Rank 1
Veteran
commented on 02 Aug 2021, 03:04 PM

I check version both are already same as your mentioned.

My .Net core package version is 

<PackageReference Include="Telerik.Reporting.Services.AspNetCore" Version="15.1.21.616" />

My angular report viewer version is "@progress/telerik-angular-report-viewer": "^13.21.716",

Dimitar
Telerik team
commented on 04 Aug 2021, 01:36 PM

Thank you for providing the version of the packages.

The Angular Report Viewer NPM package seems to have been updated to 13.21.716 which is not the same as the Telerik Reporting packages used in the .NET Core project - 15.1.21.616. The last three digits are essentially the difference, the Angular viewer uses 1 version higher than the .NET Core NuGet package.

Either downgrade the angular viewer to 13.21.616 or upgrade the .NET Core project.

Note that this is an Internal Build and you may need to check the Include prerelease box in the NuGet package manager in order to be able to use it, see attached images.

Zaw
Top achievements
Rank 1
Veteran
commented on 05 Aug 2021, 09:09 AM

It is working now after change both to 21.616 version. 
Tags
.NET Core Report Viewer - Angular
Asked by
Zaw
Top achievements
Rank 1
Veteran
Answers by
Dimitar
Telerik team
Share this question
or