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:


Line 43:                 return;
Line 44:             if (w > 0 || h > 0)
Line 45:                 objFile.StretchImage(w, h);
Line 46:         }
Line 47:         else if (action == "editor-image")

Source File: d:\Project\EMEZK\Web\App_Code\File.cs    Line: 45

Stack Trace:


[ArgumentException: Parameter is not valid.]
   System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) +1410764
   Kernel.CFile.StretchImage(Byte[] m_images, Int32 nw, Int32 nh, ImageFormat m_format) +718
   Kernel.CFile.StretchImage(Int32 w, Int32 h) +275
   File.ProcessRequest(HttpContext context) in d:\Project\EMEZK\Web\App_Code\File.cs:45
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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