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) +400
   ImageResizer.ImageBuilder.DecodeStream(Stream s, ResizeSettings settings, String optionalPath) +238
   ImageResizer.ImageBuilder.LoadImage(Object source, ResizeSettings settings, Boolean restoreStreamPos) +1108

[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) +1251
   ImageResizer.ImageBuilder.BuildJob(ImageJob job) +219
   ImageResizer.ImageBuilder.Build(ImageJob job) +265
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings, Boolean disposeSource, Boolean addFileExtension) +140
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings, Boolean disposeSource) +34
   ImageResizer.ImageBuilder.Build(Object source, Object dest, ResizeSettings settings) +24
   ImageResizer.<>c__DisplayClass3.<HandleRequest>b__2(Stream stream) +244
   ImageResizer.Plugins.DiskCache.<>c__DisplayClasse.<TryWriteFile>b__d() in C:\Users\Administrator\Documents\resizer\Plugins\DiskCache\CustomDiskCache.cs:285
   ImageResizer.Plugins.DiskCache.LockProvider.TryExecute(String key, Int32 timeoutMs, LockCallback success) in C:\Users\Administrator\Documents\resizer\Plugins\DiskCache\LockProvider.cs:79
   ImageResizer.Plugins.DiskCache.CustomDiskCache.TryWriteFile(CacheResult result, String physicalPath, String relativePath, ResizeImageDelegate writeCallback, DateTime sourceModifiedUtc, Int32 timeoutMs, Boolean recheckFS) in C:\Users\Administrator\Documents\resizer\Plugins\DiskCache\CustomDiskCache.cs:257
   ImageResizer.Plugins.DiskCache.CustomDiskCache.GetCachedFile(String keyBasis, String extension, ResizeImageDelegate writeCallback, DateTime sourceModifiedUtc, Int32 timeoutMs, Boolean asynchronous) in C:\Users\Administrator\Documents\resizer\Plugins\DiskCache\CustomDiskCache.cs:139
   ImageResizer.Plugins.DiskCache.DiskCache.Process(IResponseArgs e) in C:\Users\Administrator\Documents\resizer\Plugins\DiskCache\DiskCache.cs:327
   ImageResizer.Plugins.DiskCache.DiskCache.Process(HttpContext context, IResponseArgs e) in C:\Users\Administrator\Documents\resizer\Plugins\DiskCache\DiskCache.cs:297
   ImageResizer.InterceptModule.HandleRequest(HttpContext context, String virtualPath, NameValueCollection queryString, IVirtualFile vf) +2141
   ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest(Object sender, EventArgs e) +1251
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +223
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +91


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