Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 2.41 KB

cannot-load-html5-viewer-templates-error.md

File metadata and controls

47 lines (38 loc) · 2.41 KB
title page_title description slug previous_url tags published type res_type
Cannot Load HTML5 Report Viewer Templates
Error 'Cannot Load HTML5 Report Viewer Templates' occurs
Learn how to fix the error about being unable to load the Telerik Reporting ReportViewer templates in the HTML5-based viewers.
telerikreporting/using-reports-in-applications/display-reports-in-applications/web-application/troubleshooting/html5-viewer-troubleshooting
/using-reports-in-applications/display-reports-in-applications/web-application/troubleshooting/html5-viewer-troubleshooting.html
telerik, reporting, troubleshoot, html5, reportviewer, cannot, load, templates, error, occurs
true
troubleshooting
kb

Environment

Product Progress® Telerik® Reporting
Version Q2 2012 and later
Report Viewers WinForms, WPF, ASP.NET

Description

An Error loading the report viewer's templates. (Template = /api/reports/resources/templates/telerikReportViewerTemplate-html) occurs when using the HTML5 Telerik Reporting ReportViewer.

Cause

The error message indicates that the [Reporting REST service]({%slug telerikreporting/using-reports-in-applications/host-the-report-engine-remotely/telerik-reporting-rest-services/overview%}) is not responding.

Solution

To solve the issue, use the following approaches:

  • Check the HTML5 Viewer [serviceUrl]({%slug telerikreporting/using-reports-in-applications/display-reports-in-applications/web-application/html5-report-viewer/api-reference/report-viewer-initialization%}) and adjust the relative path.
  • Try adding ~ or removing the first ..
  • It is recommended to test the service by address in the browser as described in the article on [adding the Telerik Reporting REST web API to web applications]({%slug telerikreporting/using-reports-in-applications/host-the-report-engine-remotely/telerik-reporting-rest-services/asp.net-web-api-implementation/how-to-add-telerik-reporting-rest-web-api-to-web-application%}).
  • The issue might be related to duplicating routes of the WebAPI controllers. To avoid such a possibility, [change the Telerik Reporting REST Web API routes registered byu default]({%slug how-to-change-reporting-rest-web-api-routes-registered-by-default%}).