Telerik Html5 Report Viewer “The requested resource does not support http method 'GET' ”

2 posts, 0 answers
  1. madhav
    madhav avatar
    1 posts
    Member since:
    Jul 2013

    Posted 07 Dec 2014 Link to this post

    I am getting this while using html5 report viewer in my MVC projectUnable to get report parameters: Report 'Application.Reports.Report1, WebAppUsingTelerikReport' cannot be resolved.After clicking the error in console it says The requested resource does not support http method 'GET'


    @{
    Layout = null;
    var typeReportSource = new TypeReportSource() { TypeName = "Application.Reports.Report1, WebAppUsingTelerikReport"
    };
    }

    <script type="text/javascript">
    $(document).ready(function () {
    debugger;


    $("#reportViewer1")
    .telerik_ReportViewer({
    serviceUrl: "/api/reports/",
    templateUrl: '../ReportViewer/templates/telerikReportViewerTemplate-8.2.14.1027.html',
    reportSource: {
    report: "@typeReportSource",
    },
    viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
    scaleMode: telerikReportViewer.ScaleModes.FIT_PAGE_WIDTH,
    scale: 1.0,
    ready: function () {
    }
    });
    });
    </script>
  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 10 Dec 2014 Link to this post

    Hello Madhav,

    Please verify the Reporting REST service configuration is as in the How To: Add Telerik Reporting REST Web API to Web Application article.

    In general, the Reporting REST service uses the following methods - REST API Reference, which the server must be able to handle.


    I hope the above information is helpful.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top