Hi,
This all works fine in the IDE but can't get it working with IIS. I have gone through the guides but without success (here)
The main issue I'm getting is:
loading...
Error loading the report viewer's templates
Is there a practical guide to MVC+IIS deployment? For instance is there a guide to deploying the official example:
\Program Files (x86)\Telerik\Reporting Q3 2013\Examples\CSharp\MvcDemo
MVC4
Windows 7 64 bit
Q3 2013 Release - ReportViewer-7.2.13.1016
VS2012
I'm doing it like this:
Thanks
Simon.
This all works fine in the IDE but can't get it working with IIS. I have gone through the guides but without success (here)
The main issue I'm getting is:
loading...
Error loading the report viewer's templates
Is there a practical guide to MVC+IIS deployment? For instance is there a guide to deploying the official example:
\Program Files (x86)\Telerik\Reporting Q3 2013\Examples\CSharp\MvcDemo
MVC4
Windows 7 64 bit
Q3 2013 Release - ReportViewer-7.2.13.1016
VS2012
I'm doing it like this:
@
using
Telerik.ReportViewer.Mvc
@(Html.TelerikReporting().ReportViewer()
.Id(
"reportViewer1"
)
.ServiceUrl(
"/api/reports/"
)
.TemplateUrl(
"/ReportViewer/templates/telerikReportViewerTemplate.html"
)
.ReportSource(
new
Telerik.Reporting.TypeReportSource() { TypeName =
"ReportClassLib.Report2, ReportClassLib"
})
.ViewMode(Telerik.ReportViewer.Mvc.ViewModes.INTERACTIVE)
.ScaleMode(Telerik.ReportViewer.Mvc.ScaleModes.SPECIFIC)
.Scale(1.0)
.PersistSession(
true
)
Thanks
Simon.
13 Answers, 1 is accepted
0
Simon
Top achievements
Rank 1
answered on 11 Nov 2013, 01:18 PM
Solved - The problem was with the way I was creating the ServiceUrl and TemplateUrl, they need to get wrapped in a Url.Content("~/.. call in order to have the correct base url when deployed to IIS:
The hours I wasted on this!
@(Html.TelerikReporting().ReportViewer()
.Id(
"reportViewer1"
)
.ServiceUrl(Url.Content(
"~/api/reports/"
))
.TemplateUrl(Url.Content(
"~/ReportViewer/templates/telerikReportViewerTemplate.html"
))
The hours I wasted on this!
0
Rosdi
Top achievements
Rank 1
answered on 17 Jan 2014, 04:07 AM
Hi thanks Simon!... you saved hours of my time!
0
Lawrence Morris
Top achievements
Rank 1
answered on 25 Mar 2014, 03:40 PM
Simon,
Thanks! Wow. I've wasted soooooo much time on this!
This fixed it!
Thanks! Wow. I've wasted soooooo much time on this!
This fixed it!
0
Luis
Top achievements
Rank 1
answered on 08 May 2014, 04:50 PM
Thanks for posting your solution
0
Luis
Top achievements
Rank 1
answered on 08 May 2014, 04:50 PM
thanks for posting your solution.
0
Swapnil
Top achievements
Rank 1
answered on 06 Oct 2014, 12:24 PM
I am getting same issue. Your solution help me. Thanks Simon!
0
Jo
Top achievements
Rank 1
answered on 31 Mar 2015, 03:10 AM
Thanks Simon! Kudos to you!
0
Karl
Top achievements
Rank 1
answered on 10 Dec 2015, 12:57 AM
Thank you just the job.
0
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
answered on 29 Dec 2016, 08:27 AM
WORKS, and Telerik Reporting Q3 2016 fix this bug please (Publish to IIS and test) - New Item > Telerik MVC Report Viewer View R3 2016.
Best regards
Chris
0
Hello Chris,
This unexpected behavior is logged in our bug tracking system and we will introduce a fix in a subsequent Telerik Reporting release.
Regards,
Peter
Telerik by Progress
This unexpected behavior is logged in our bug tracking system and we will introduce a fix in a subsequent Telerik Reporting release.
Regards,
Peter
Telerik by Progress
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
Edward
Top achievements
Rank 1
answered on 23 Feb 2017, 06:31 PM
I'm a few years late here, but thank you very much! Just adding the tilde (~) did the trick.
0
Geniver
Top achievements
Rank 1
answered on 22 May 2017, 04:53 AM
hi
i just trying to get the Telerik HTML Report viewer to work in an mvc web forms app that is named Reports.
It appears the project being named Reports causes issues for the report viewer.
Whenever trying to run the project , I get the error:
Error loading the report viewer's templates.
(Template = ../api/reports/resources/templates/telerikReportViewerTemplate-html).
0
Hello Geniver,
The error indicates connectivity problem between the Reporting REST Service and HTML5 Viewer.
For more details and solutions, please check HTML5 Viewer Troubleshooting.
Regards,
Stef
Telerik by Progress
The error indicates connectivity problem between the Reporting REST Service and HTML5 Viewer.
For more details and solutions, please check HTML5 Viewer Troubleshooting.
Regards,
Stef
Telerik by Progress
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