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

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

1 Answer 438 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
madhav
Top achievements
Rank 1
madhav asked on 07 Dec 2014, 10:26 AM
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>

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 10 Dec 2014, 04:29 PM
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.

 
Tags
General Discussions
Asked by
madhav
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or