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

3 posts, 0 answers
  1. Bill
    Bill avatar
    5 posts
    Member since:
    Mar 2016

    Posted 24 Mar Link to this post

    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. Bill
    Bill avatar
    5 posts
    Member since:
    Mar 2016

    Posted 24 Mar Link to this post

    wrong folder on js.
  3. DevCraft banner
  4. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 25 Mar Link to this post

    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
Back to Top