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

Problems deploying ReportViewer to IIS 7.5

13 Answers 564 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 10 Nov 2013, 11:54 PM
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:
@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

Sort by
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:

@(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!
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
Peter
Telerik team
answered on 30 Dec 2016, 12:27 PM
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
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
Stef
Telerik team
answered on 23 May 2017, 08:34 AM
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
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
Simon
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Rosdi
Top achievements
Rank 1
Lawrence Morris
Top achievements
Rank 1
Luis
Top achievements
Rank 1
Swapnil
Top achievements
Rank 1
Jo
Top achievements
Rank 1
Karl
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
Peter
Telerik team
Edward
Top achievements
Rank 1
Geniver
Top achievements
Rank 1
Stef
Telerik team
Share this question
or