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) +627563
   ImageResizer.ImageBuilder.DecodeStream(Stream s, ResizeSettings settings, String optionalPath) in C:\projects\resizer\Core\ImageBuilder.cs:225
   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:435
   ImageResizer.ImageBuilder.Build(ImageJob job) in C:\projects\resizer\Core\ImageBuilder.cs:415
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings, Boolean disposeSource, Boolean addFileExtension) in C:\projects\resizer\Core\ImageBuilder.cs:396
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings, Boolean disposeSource) in C:\projects\resizer\Core\ImageBuilder.cs:380
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings) in C:\projects\resizer\Core\ImageBuilder.cs:354
   ImageResizer.<>c__DisplayClass5_0.<HandleRequest>b__1(Stream stream) in C:\projects\resizer\Core\InterceptModule.cs:187
   ImageResizer.Plugins.Basic.NoCacheHandler.ProcessRequest(HttpContext context) in C:\projects\resizer\Core\Plugins\Basic\NoCacheHandler.cs:40
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +798
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +91


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