Telerik Reporting not generating reports

2 posts, 0 answers
  1. Zoran
    Zoran avatar
    1 posts
    Member since:
    Oct 2012

    Posted 11 Feb Link to this post

    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();
                        }
                    });
            });

  2. Eric R | Senior Technical Support Engineer
    Admin
    Eric R | Senior Technical Support Engineer avatar
    309 posts

    Posted 13 Feb Link to this post

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