Server Error in '/' Application.

Invalid parameter used.

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: Invalid parameter used.

Source Error:


Line 19:         Dim iHeight As Double = gdImageGrp.MeasureString(sTextToImg, fntImageFont).Height  'should be float
Line 20:         
Line 21:         bmpImage = New Bitmap(iWidth, iHeight, pxImagePattern)
Line 22:         gdImageGrp = Graphics.FromImage(bmpImage)
Line 23:         gdImageGrp.Clear(Color.White)

Source File: C:\web\www\wissmachglass\verification.aspx    Line: 21

Stack Trace:


[ArgumentException: Invalid parameter used.]
   System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) +114
   ASP.verification_aspx.Page_Load() in C:\web\www\wissmachglass\verification.aspx:21
   System.Web.Util.ArglessEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +10
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +750


Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407