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

Arithmetic operation resulted in an overflow

6 Answers 1129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 15 Apr 2013, 05:22 PM
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

6 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 18 Apr 2013, 03:51 PM
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.

0
Noah
Top achievements
Rank 2
answered on 16 May 2013, 03:54 PM
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
0
Michael Landy
Top achievements
Rank 1
answered on 21 May 2013, 03:36 AM
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?
0
Jeff
Top achievements
Rank 1
answered on 11 Jun 2013, 05:23 PM
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

0
Rieni De Rijke
Top achievements
Rank 1
answered on 14 Nov 2014, 02:37 PM
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?
0
Stef
Telerik team
answered on 18 Nov 2014, 03:40 PM
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.

 
Tags
General Discussions
Asked by
Nick
Top achievements
Rank 1
Answers by
Stef
Telerik team
Noah
Top achievements
Rank 2
Michael Landy
Top achievements
Rank 1
Jeff
Top achievements
Rank 1
Rieni De Rijke
Top achievements
Rank 1
Share this question
or