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

JavaScript runtime error: Object doesn't support property or method 'telerik_ReportViewer'

2 Answers 255 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 24 Mar 2016, 04:30 PM
Newbie question.  Apologies in advance. I've check path here:<script src="@Url.Content("~/ReportViewer/js/kendo.subset.2015.3.930.min.js")"></script> and that seems ok.  I get this error: JavaScript runtime error: Object doesn't support property or method 'telerik_ReportViewer'

2 Answers, 1 is accepted

Sort by
0
Bill
Top achievements
Rank 1
answered on 24 Mar 2016, 09:45 PM
wrong folder on js.
0
Stef
Telerik team
answered on 25 Mar 2016, 10:27 AM
Hello Bill,

I suppose you already resolved the issue.

For anyone interested, such error can occur if jQuery is not loaded or if it is loaded more than once on the page. Also the viewer's JS file must be loaded in order to create the viewer object.

Details about the minimum requirements for JS and CSS resources on the page - HTML5 Viewer Requirements. The recommended troubleshooting approach is to use Fiddler or other proxy tool to check the requests, their responses and statuses. 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.


I hope this information is helpful.


Regards,
Stef
Telerik
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
Bill
Top achievements
Rank 1
Answers by
Bill
Top achievements
Rank 1
Stef
Telerik team
Share this question
or