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

Telerik Reporting not generating reports

1 Answer 522 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Zoran
Top achievements
Rank 1
Veteran
Zoran asked on 11 Feb 2020, 12:21 PM

I have a web app, in .Net Core 3.1 and I am using Telerik Reporting to generate my report. I am getting an error which says:
"Failed to load resource: the server responded with a status of 500 (Internal Server Error) - api/reports/formats:1"

 

I don't think the serviceUrl is the issue, but here it is:

<script type="text/javascript">
        $(document).ready(function () {
            $("#btnReport").click(function () {
                var viewer = $("#reportViewer1").data("telerik_ReportViewer");
                viewer.reportSource({
                    report: "KarposhReports.Temp, KarposhReports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
                    parameters: { imageUrl: $("#imageUrl").attr('href') }
                });
                viewer.refreshReport();
                $("#reportViewer1").show(0);
            });
            $("#reportViewer1")
                .telerik_reportViewer1({
                    serviceUrl: "/api/reports",
                    reportSource: {
                        report: "KarposhReports.Temp, KarposhReports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
                    },
                    viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
                    scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
                    scale: 1.0,

                    ready: function () {
                        this.refreshReport();
                    }
                });
        });

1 Answer, 1 is accepted

Sort by
0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 13 Feb 2020, 09:04 PM

Hi Zoran,

This appears to be how the parameter is being passed to the Available Document Formats Endpoint. I recommend verifying that all of the Document Formats are available by navigating to the {web app domain}/api/reports/formats endpoint to ensure that the Reporting REST Service is up and running.

In addition, I will need more information in order fully troubleshoot the issue. Can you provide the following information as well?

1. The Reports Controller

2. The Report Generation code, if any.

Finally, I would also like to point to our ASP.NET Core Sample located in the default installation folder. See C:\Program Files (x86)\Progress\Telerik Reporting R1 2020\Examples\CSharp\Asp.NetCoreFullDemo for more information.

In the meantime, please let me know if you have any additional questions. Thank you and I look forward to your reply.

Regards,


Eric R | Senior Technical Support Engineer
Progress 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
Zoran
Top achievements
Rank 1
Veteran
Answers by
Eric R | Senior Technical Support Engineer
Telerik team
Share this question
or