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

What would cause a template to not be found?

1 Answer 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
J
Top achievements
Rank 2
J asked on 07 Sep 2016, 05:44 AM

If I have the Reporting WebAPI setup so that it's working, ie http://localhost:56200/api/v1/report/ is returning:

[{"name":"PDF","localizedName":"Acrobat (PDF) file"},{"name":"CSV","localizedName":"CSV (comma delimited)"},{"name":"XLS","localizedName":"Excel 97-2003"},{"name":"RTF","localizedName":"Rich Text Format"},{"name":"IMAGE","localizedName":"TIFF file"},{"name":"MHTML","localizedName":"Web Archive"},{"name":"XPS","localizedName":"XPS Document"}]

What would cause a 404 when attempting to retrieve a template? ie:

http://localhost:56200/api/v1/report/resources/templates/telerikReportViewerTemplate-html

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 07 Sep 2016, 09:31 AM
Hi Jon,

The response from the server verifies that the project has a Telerik Reporting REST service in it. The viewer may not get its HTML template on request due to incorrect serviceUrl.

The recommended troubleshooting approach for the HTML5 Viewer is to use Fiddler or other proxy tool to check the requests, their responses and statuses. With Fiddler, information about requests and responses content can be seen in Fiddler - Inspectors - Request/Response - Raw tabs. This will let you check requests to the Reporting REST service and if the URLs are correct, if relative paths are resolved correctly.
Relative paths may need adjustment depending on how the application is hosted -ASP.NET Web Project Paths MSDN article.


If you need further help, please send us a SAZ file generated by Fiddler while displaying the page with the viewer. We will need a demo project illustrating your settings as well.

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
J
Top achievements
Rank 2
Answers by
Stef
Telerik team
Share this question
or