Arithmetic operation resulted in an overflow

7 posts, 0 answers
  1. Nick
    Nick avatar
    1 posts
    Member since:
    May 2011

    Posted 15 Apr 2013 Link to this post

    Hi,

    We are using the Telerik Reporting to generate reports within our web application. Details are below. We are currently running the application on Windows Server 2008 R2 (IIS 7.5) and are looking to move the application to Windows Server 2012 (IIS 8). When we generate the report, we get the below.NET exception in the Report window. (I also attached the error in a JPG)

    We verified that this is not a SQL exception from our database procedure call. We are even able to Export the report to a PDF and the PDF looks correct (as we would expect the report to display on screen). We have other Telerik controls within the application (mainly the Scheduler control) and that is working in Server 2012/IIS 8 without an issue.

    Is this a known issue when using IIS 8? I checked the forums and have not seen another report of the same issue. Let me know if you need any further information. Thanks for your time and help.

    Application:
    - .NET 2.0
    - Telerik.Reporting.dll version : 3.2.9.1211

    Arithmetic operation resulted in an overflow.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.OverflowException: Arithmetic operation resulted in an overflow.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [OverflowException: Arithmetic operation resulted in an overflow.]
       Telerik.Reporting.HtmlRendering.HtmlItemRender.CreateIndexedBitmapUnmanaged(Bitmap colorBitmap) +1399
       Telerik.Reporting.HtmlRendering.HtmlItemRender.CreateIndexedBitmap(Bitmap srcBitmap, ImageFormat& imageFormat, String& extension, String& mimeType) +172
       Telerik.Reporting.HtmlRendering.HtmlItemRender.SaveImageInStream(HtmlRenderingContext context, Bitmap srcBitmap, String& name, String& extension) +61
       Telerik.Reporting.HtmlRendering.ShapeItemRenderer.RenderInternal(ProcessingElement processingElement, HtmlRenderingContext context) +713
       Telerik.Reporting.HtmlRendering.RenderingContext.Render(ReportItemBase item) +74
       Telerik.Reporting.HtmlRendering.Matrix.RenderInternal(HtmlRenderingContext context) +2198
       Telerik.Reporting.HtmlRendering.RenderingContext.Render(ReportItemBase item) +74
       Telerik.Reporting.HtmlRendering.HtmlPage.RenderReportSections(HtmlWriter bodyWriter) +1137
       Telerik.Reporting.HtmlRendering.HtmlPage.RenderBody(HtmlWriter bodyWriter) +326
       Telerik.Reporting.HtmlRendering.HtmlPage.Render(HtmlTextWriter primaryWriter, HtmlRenderingContext renderingContext) +168
       Telerik.Reporting.HtmlRendering.HtmlReport.Render(HtmlTextWriter writer, Int32 startPage, Int32 endPage) +451
       Telerik.Reporting.HtmlRendering.HtmlRenderingExtension.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +214
       Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback) +711
       Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +630
       Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WebForms\ServerReport.cs:119
       Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WebForms\ReportPageOperation.cs:21
       Telerik.ReportViewer.WebForms.HttpHandler.ProcessRequest(HttpContext context) in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WebForms\HttpHandler.cs:73
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
    
  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 18 Apr 2013 Link to this post

    Hi Nick,

    Telerik reporting Q3 2009 SP1 is a really old version and there might be some issues that are fixed in the current versions. We will need more information about the report definition and project causing the exception, but please note that even if there is an issue we will not be able to do anything since this version will not be updated. Therefore we can recommend you to upgrade to a more recent version of Telerik Reporting and check if the issue persists.

    Regards,
    Stef
    the Telerik team

    Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

  3. Noah
    Noah avatar
    9 posts
    Member since:
    Dec 2008

    Posted 16 May 2013 Link to this post

    Hi Nick,

    I am experiencing a very similar problem.  I am using the current version of Telerik Reporting and I'm uploading to Azure.  I've opened a support ticket with my report.  I will let you know what I get back.

    Thanks
    -Noah
  4. Michael Landy
    Michael Landy avatar
    15 posts
    Member since:
    Dec 2009

    Posted 20 May 2013 Link to this post

    I am having the same issue when I run the report on SQL Azure.  I have a server process that will run the report and return the PDF to my application.  When running the server locally, everything is working fine.  However, when running on SQL Azure, I get the Aritmetic operation resulted in an overflow.

    Does Telerik not support Azure?
  5. Jeff
    Jeff avatar
    1 posts
    Member since:
    Dec 2008

    Posted 11 Jun 2013 Link to this post

    Make that 3 with report printing issues when hosting on Azure.
    Arithmetic overflow on export and no print dialog response to print button click event.
    Windows 8 
    Latest Chrome (  Version 27.0.1453.110 m )
    Latest released report version - Q1 2013

  6. Rieni De Rijke
    Rieni De Rijke avatar
    170 posts
    Member since:
    Mar 2010

    Posted 14 Nov 2014 in reply to Jeff Link to this post

    I have a same problem. I use the newest Desegner for telerik WPF: 2014.2.2001 from 24 October 2014.
    .NET v4.030319
    I use SQL 2012, same .NET version.
    I have Windows 8 on my computer.

    Is there a solution, some ideas, a fix?
  7. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 18 Nov 2014 Link to this post

    Hello everyone,

    Please check the following KB article regarding deployment in Azure - GDI+ error or OutOfMemoryException on exporting or printing Telerik report from Azure WebSites.

    If you are using Azure WebSites without GDI+ support on the server will appear error logs as GDI+ error or OutOfMemoryException after trying to print the report. The reason is that the print operation relies on the PDF rendering, which requires GDI support.


    If the above linked article does not relate to your issue, please elaborate on the problem, the type of project and provide screenshots to illustrate it.

    All the best,
    Stef
    the Telerik team
     

    Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

     
Back to Top