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 174:                iFontSize = iFontSize < 10 ? 10 : iFontSize;
Line 175:
Line 176:                Bitmap bmpNoImage = new Bitmap(iWidthToUse, iHeightToUse);
Line 177:
Line 178:                Font font = new Font("Trebuchet MS", iFontSize, FontStyle.Bold, GraphicsUnit.Pixel);

Source File: c:\Octopus\Applications\prod\Log-Home-Design-Center-deploy-prod\13\images\mojoThumb.aspx.cs    Line: 176

Stack Trace:


[ArgumentException: Parameter is not valid.]
   System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) +1410764
   mojoThumb.Page_Load(Object sender, EventArgs e) in c:\Octopus\Applications\prod\Log-Home-Design-Center-deploy-prod\13\images\mojoThumb.aspx.cs:176
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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