Server Error in '/' Application.

Target width -2147483648 and height 0 must be greater than zero.

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.InvalidOperationException: Target width -2147483648 and height 0 must be greater than zero.

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:


[InvalidOperationException: Target width -2147483648 and height 0 must be greater than zero.]
   ImageProcessor.Imaging.ResizeHelper.ThrowInvalid(String message) +46
   ImageProcessor.Imaging.ResizeHelper.CalculateTargetLocationAndBounds(Size sourceSize, ResizeLayer options, Int32 width, Int32 height) +472
   ImageProcessor.Imaging.Resizer.ResizeImage(Image source, Boolean linear) +571

[ImageProcessingException: Error processing image with Resizer]
   ImageProcessor.Imaging.Resizer.ResizeImage(Image source, Boolean linear) +1431
   ImageProcessor.Processors.Resize.ProcessImage(ImageFactory factory) +501

[ImageProcessingException: Error processing image with Resize]
   ImageProcessor.Processors.Resize.ProcessImage(ImageFactory factory) +758
   ImageProcessor.Imaging.Formats.FormatBase.ApplyProcessor(Func`2 processor, ImageFactory factory) +24
   ImageProcessor.Web.ImageFactoryExtensions.AutoProcess(ImageFactory factory, IWebGraphicsProcessor[] graphicsProcessors) +191
   ImageProcessor.Web.HttpModules.<ProcessImageAsync>d__31.MoveNext() +4541
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
   System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) +59
   System.Web.AsyncEventExecutionStep.InvokeEndHandler(IAsyncResult ar) +187
   System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +162


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