Internal Server Error: Parameter is not valid when export to PDF

5 posts, 1 answers
  1. Phongsathorn
    Phongsathorn avatar
    6 posts
    Member since:
    Jan 2013

    Posted 20 Aug 2014 Link to this post

    Dear Telerik team,

    I always got error "Internal Server Error: Parameter is not valid." when I export report to PDF from Html5 report viewer.
    This issue happen when I upload project to online server Windows Azure. But it is not happen on local or test environment.

    Error message is in attached image.

    Thanks.
  2. Phongsathorn
    Phongsathorn avatar
    6 posts
    Member since:
    Jan 2013

    Posted 20 Aug 2014 Link to this post

    I'm using Reporting Q2 2014

    This is scripts:

       <link href="~/Content/font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" />
       <link href="~/ReportViewer/styles/telerikReportViewer-8.1.14.804.css" rel="stylesheet" />


    }
    @{
        var typeReportSource = new UriReportSource() { Uri = "../Reports/Performance/MotorcycleSales.trdx" };

        typeReportSource.Parameters.Add(new Telerik.Reporting.Parameter("FROMDATE", DateTime.Now));
        typeReportSource.Parameters.Add(new Telerik.Reporting.Parameter("TODATE", DateTime.Now));

    }

    <div>
        @(Html.TelerikReporting().ReportViewer()
            .Id("reportViewer1")
             .ServiceUrl("/api/reports/")
                    .TemplateUrl("../ReportViewer/templates/telerikReportViewerTemplate-8.1.14.804.html")
               .ReportSource(typeReportSource)
            .ViewMode(ViewModes.PRINT_PREVIEW)
            .ScaleMode(ScaleModes.SPECIFIC)
            .Scale(1.0)
            .PersistSession(false)
        )
    </div>
    @section scripts
    {

        <script src="../ReportViewer/js/telerikReportViewer-8.1.14.804.js"></script>
    }
  3. DevCraft banner
  4. Stef
    Admin
    Stef avatar
    3041 posts

    Posted 26 Aug 2014 Link to this post

    Hi,

    Please check if you hosting plan corresponds to the described in the OutOfMemoryException on exporting or printing Telerik report from Azure WebSites KB article.

    I hope the information helps you.

    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.

     
  5. Answer
    Sam
    Sam avatar
    9 posts
    Member since:
    Dec 2014

    Posted 04 Apr 2015 in reply to Stef Link to this post

    I just wanted to confirm that upgrade from a "Shared" to a "Basic" Azure Websites hosting plan resolved this issue for me.
  6. Patrick
    Patrick avatar
    34 posts
    Member since:
    Oct 2011

    Posted 16 May 2015 Link to this post

    I had this problem and managed to solve it by moving from a Free pricing Azure web app to a Standard pricing Azure web app.  I then had a separate problem (error in GDI+) when exporting to RTF which I managed to solve by adding the section for RTF rendering extensions to my Web.config file, as per:

    http://www.telerik.com/support/kb/reporting/details/outofmemoryexception-on-exporting-or-printing-telerik-report-from-azure-websites

    Hope this helps anyone who has a similar problem :) 

     

Back to Top
DevCraft banner