Server Error in '/' Application.

A generic error occurred in GDI+.

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.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.

Source Error:


Line 113:                    // draw the images to the canvas and save back to the server
Line 114:                    gr.DrawImage(img, new Rectangle(iXPos, iYPos, iThumbWidth, iThumbHeight), new Rectangle(0, 0, iSrcWidth, iSrcHeight), GraphicsUnit.Pixel);
Line 115:                    bmp.Save(sCachedFileName, System.Drawing.Imaging.ImageFormat.Jpeg);
Line 116:
Line 117:                    // clean up all of the mess from above

Source File: c:\Octopus\Applications\prod\Ritz-Craft-Global-Content-deploy-prod\11\images\mojoThumb.aspx.cs    Line: 115

Stack Trace:


[ExternalException (0x80004005): A generic error occurred in GDI+.]
   System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +579
   mojoThumb.Page_Load(Object sender, EventArgs e) in c:\Octopus\Applications\prod\Ritz-Craft-Global-Content-deploy-prod\11\images\mojoThumb.aspx.cs:115
   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