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

"Error loading the report viewer's templates" when Use HTML5 Report Viewer with Report Server

4 Answers 1241 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
hongnguyenx
Top achievements
Rank 1
hongnguyenx asked on 16 Apr 2020, 11:07 AM

Dear support team,
I'm using Report server (Version: 6.0.20.219) to design and manage report.

After completed design report I follow this link "https://docs.telerik.com/reporting/html5-report-viewer-howto-use-it-with-reportserver" to  embed report into my ASP.NET Application.

I follow step by step is completed, but when I run that html report it show error:

"Error loading the report viewer's templates. (templateUrl = 'http://localhost:83/api/reports/resources/templates/telerikReportViewerTemplate-14.0.20.219.html/')."

I come in to Report Server installed folder "C:\Program Files (x86)\Progress\Telerik Report Server\Telerik.ReportServer.Web\ReportViewer" but I can't find the "templates" folder :(

Please help me the way to fix it.

 

4 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 21 Apr 2020, 08:09 AM

Hello,

The viewer's HTML template is served from the server thought the Report Server API, it is not fetched from the local files. Error loading the report viewer's templates indicates that the reportServer's url property is empty or invalid. Make sure that the address of the Report Server is correct, for example:

$("#reportViewer1")
  .telerik_ReportViewer({
    reportServer: {
      url: "http://yourReportServerUrl:port",
      username: null,
      password: null
    },
    //templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate-x.x.xx.xxx.html',
    reportSource: {
      // The report value should contain the Category and ReportName in the following format
      // {Category/ReportName}
      report: "Samples/Dashboard"
        parameters: {
          ReportYear: 2004
        }
      }
  });

 

Regards,
Katia
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Christian Sandöy
Top achievements
Rank 2
answered on 30 Jun 2020, 11:54 AM
I get the same error after I update the server to ver. 6.1.20.618
0
Christian Sandöy
Top achievements
Rank 2
answered on 01 Jul 2020, 08:15 AM

If I add this

templateUrl: '/lib/telerik-report/templates/telerikReportViewerTemplate-14.1.20.513.html',

now to more files is missing from server

https://intranet.aros.dk:446/api/reports/resources/font/fonticons-14.1.20.513.css/

https://intranet.aros.dk:446/api/reports/resources/styles/telerikReportViewer-14.1.20.513.css/

0
Christian Sandöy
Top achievements
Rank 2
answered on 01 Jul 2020, 08:45 AM
Found the error, needed to upgrade my local copy to 618
Tags
General Discussions
Asked by
hongnguyenx
Top achievements
Rank 1
Answers by
Katia
Telerik team
Christian Sandöy
Top achievements
Rank 2
Share this question
or