Server Error in '/' Application.

Target width 0 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 0 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 0 and height 0 must be greater than zero.]
   ImageProcessor.Imaging.ResizeHelper.CalculateTargetLocationAndBounds(Size sourceSize, ResizeLayer options, Int32 width, Int32 height) +136
   ImageProcessor.Imaging.Resizer.ResizeImage(Image source, Boolean linear) +507

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

[ImageProcessingException: Error processing image with Resize]
   ImageProcessor.Processors.Resize.ProcessImage(ImageFactory factory) +620
   ImageProcessor.Imaging.Formats.FormatBase.ApplyProcessor(Func`2 processor, ImageFactory factory) +16
   ImageProcessor.Web.ImageFactoryExtensions.AutoProcess(ImageFactory factory, IWebGraphicsProcessor[] graphicsProcessors) +144
   ImageProcessor.Web.HttpModules.d__31.MoveNext() +3552
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) +63
   System.Web.<>c__DisplayClass11_0.b__0() +29
   System.Web.StepInvoker.Invoke(Action executionStep) +100
   System.Web.<>c__DisplayClass4_0.b__0() +17
   Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.OnExecuteRequestStep(HttpContextBase context, Action step) +64
   System.Web.<>c__DisplayClass284_0.b__0(Action nextStepAction) +54
   System.Web.StepInvoker.Invoke(Action executionStep) +84
   System.Web.<>c__DisplayClass4_0.b__0() +17
   Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule.OnExecuteRequestStep(HttpContextBase context, Action step) +124
   System.Web.<>c__DisplayClass284_0.b__0(Action nextStepAction) +54
   System.Web.StepInvoker.Invoke(Action executionStep) +84
   System.Web.AsyncEventExecutionStep.InvokeEndHandler(IAsyncResult ar) +113
   System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +123


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