Server Error in '/' 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:

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.]
   System.IntPtr.op_Explicit(IntPtr value) +36
   Ventrian.ImageResizer.ImageQuantization.Quantizer.FirstPass(BitmapData sourceData, Int32 width, Int32 height) +169
   Ventrian.ImageResizer.ImageQuantization.Quantizer.Quantize(Image source) +768
   Ventrian.ImageResizer.ImageOutputSettings.SaveIndexed(ImageFormat format, Image img, Stream target, Byte colors, Boolean dither, Boolean fourPass, Int32 ditherPercent, Boolean useGdiQuantization) +260
   Ventrian.ImageResizer.ImageOutputSettings.SaveImage(Stream s, Image i) +956
   Ventrian.SimpleGallery.ImageHandler.ProcessRequest(HttpContext context) +2446
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0