Server Error in '/' Application.

Parameter is not valid.

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.ArgumentException: Parameter is not valid.

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:


[ArgumentException: Parameter is not valid.]
   System.Drawing.Bitmap..ctor(Stream stream, Boolean useIcm) +487801
   ImageResizer.ImageBuilder.DecodeStream(Stream s, ResizeSettings settings, String optionalPath) in C:\projects\resizer\Core\ImageBuilder.cs:224
   ImageResizer.ImageBuilder.LoadImage(Object source, ResizeSettings settings, Boolean restoreStreamPos) in C:\projects\resizer\Core\ImageBuilder.cs:178

[ImageCorruptedException (0x80004005): File may be corrupted, empty, or may contain a PNG image with a single dimension greater than 65,535 pixels.]
   ImageResizer.ImageBuilder.LoadImage(Object source, ResizeSettings settings, Boolean restoreStreamPos) in C:\projects\resizer\Core\ImageBuilder.cs:182
   ImageResizer.ImageBuilder.BuildJob(ImageJob job) in C:\projects\resizer\Core\ImageBuilder.cs:440
   ImageResizer.ImageBuilder.Build(ImageJob job) in C:\projects\resizer\Core\ImageBuilder.cs:415
   ImageResizer.<>c__DisplayClass5_0.<HandleRequest>b__1(Stream stream) in C:\projects\resizer\Core\InterceptModule.cs:213
   ImageResizer.Plugins.Basic.NoCacheHandler.ProcessRequest(HttpContext context) in C:\projects\resizer\Core\Plugins\Basic\NoCacheHandler.cs:39
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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