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.

  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-" 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));


    @section scripts

        <script src="../ReportViewer/js/telerikReportViewer-"></script>
  3. Stef
    Stef avatar
    3611 posts

    Posted 26 Aug 2014 Link to this post


    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.


    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.

  4. Answer
    Sam avatar
    13 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.
  5. 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:

    Hope this helps anyone who has a similar problem :) 


Back to Top