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 805:                nPageHeight = nOrigHeight * nZoom
Line 806:            End If
Line 807:            oPageImage = New Drawing.Bitmap(nPageWidth, nPageHeight, Iff(nTransparent, Drawing.Imaging.PixelFormat.Format32bppArgb, Drawing.Imaging.PixelFormat.Format24bppRgb))
Line 808:            oPageGraphics = Drawing.Graphics.FromImage(oPageImage)
Line 809:            If Not nTransparent Then oPageGraphics.FillRectangle(Drawing.Brushes.White, New System.Drawing.Rectangle(0, 0, nPageWidth, nPageHeight))

Source File: c:\Web\HDPhotoHub\view\meld.aspx    Line: 807

Stack Trace:


[ArgumentException: Parameter is not valid.]
   System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) +1164726
   ASP.view_meld_aspx.DoPage(String sParms) in c:\Web\HDPhotoHub\view\meld.aspx:807
   ASP.view_meld_aspx.Page_Load(Object Source, EventArgs E) in c:\Web\HDPhotoHub\view\meld.aspx:123
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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