Arithmetic operation resulted in an overflow.

231 views
Skip to first unread message

anupam gupta

unread,
Nov 23, 2013, 8:49:21 PM11/23/13
to dot-net-...@googlegroups.com
I am running the code and my website is running on dotnet 3.5, 64bit windows 8.1, Visual Studio 2012. When I try to create a pdf file, it is giving me error of arithmetic overflow. Error is display below. Has anyone seen this error before and tell em what am I doing wrong? Any help will be appreciated.

Server Error in '/ChildcareCouncil' Application.

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:

Line 48:             context.Response.ContentType = "application/pdf";
Line 49:             context.Response.AddHeader("content-disposition", string.Format("inline; filename=ChildcareClaim.pdf", claimId));
Line 50:             report.Publish(context.Response.OutputStream, FileFormat.PDF);
Line 51:             context.Response.End();
Line 52:         }

Source File: c:\Users\Anupam\documents\visual studio 2010\projects\childcarecouncil\childcarecouncil\childcarecouncil\Secure\CertificateTraining.ashx    Line: 50

Stack Trace:

[OverflowException: Arithmetic operation resulted in an overflow.]
   System.IntPtr.op_Explicit(IntPtr value) +37
   Siberix.TTF.Font.GetData(Font font) +412
   Siberix.Graphics.VirtualGraphics.set_Font(Font value) +156
   Siberix.Report.Text.Text.ComposeUnits(Text text, Composition composition, IGraphics graphics) +2147
   Siberix.Report.Text.Text.Measure(Composition composition, IGraphics graphics, MeasureMode mode) +1046
   Siberix.Report.Grid.Cell.Measure(Composition composition, IGraphics graphics, MeasureMode mode) +1190
   Siberix.Report.Grid.Row.Measure(Composition composition, IGraphics graphics, MeasureMode mode, SpanManager spanManager) +3851
   Siberix.Report.Grid.Grid.Measure(Composition composition, IGraphics graphics, MeasureMode mode) +15682
   Siberix.Report.Panel.Measure(Composition composition, IGraphics graphics, MeasureMode mode) +132
   Siberix.Report.Section.Section.AddPage(Section section, Projection projection, IGraphics graphics, HeaderCollection headers, FooterCollection footers, StationeryCollection stationeries, Int32 pageIndex, Single width, Single height, Borders borders, Spacings spacings, Paddings paddings, Background background, Boolean blank) +663
   Siberix.Report.Section.Section.Measure(Projection projection, IGraphics graphics) +933
   Siberix.Report.Report.Measure() +534
   Siberix.Report.Report.Publish(Stream stream, FileFormat format) +2659
   CertificateTraining.ProcessRequest(HttpContext context) in c:\Users\Anupam\documents\visual studio 2010\projects\childcarecouncil\childcarecouncil\childcarecouncil\Secure\CertificateTraining.ashx:50
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171

anupam gupta

unread,
Nov 23, 2013, 8:51:32 PM11/23/13
to dot-net-...@googlegroups.com
Also it works fine in actual production environment.

siberix

unread,
Nov 23, 2013, 10:27:50 PM11/23/13
to dot-net-...@googlegroups.com
Hi,

The problem might be related to one of the fonts (that you reference in your PDF report) installed on your development environment that is different to your production environment. It could also be a problem of using 32 bit library in a 64 bit environment. We provide 64 bit ReportWriter.dll for the latest versions of the product.

Also, It seems that you are using an old version (8.1 or before) of the Siberix Report Writer. Please be aware that we don't support any versions of Report Writer prior to version 9.0 anymore, so you'd need to upgrade.

Please try to use the latest evaluation version of the product (available for download at our web site) and let me know if you still have the problem.

Thank You,
Victor

Reply all
Reply to author
Forward
0 new messages