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 434:                oWeb.Dispose()
Line 435:                Dim oStream As New System.IO.MemoryStream(aData)
Line 436:                oImage = System.Drawing.Image.FromStream(oStream, False)
Line 437:                If Array.IndexOf(oImage.PropertyIdList(), 34675) > -1 Then
Line 438:                    oImage.Dispose()

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

Stack Trace:


[ExternalException (0x80004005): A generic error occurred in GDI+.]
   System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) +1148238
   System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement) +18
   ASP.view_meld_aspx.DoImage(String sParms) in c:\Web\HDPhotoHub\view\meld.aspx:436
   ASP.view_meld_aspx.Page_Load(Object Source, EventArgs E) in c:\Web\HDPhotoHub\view\meld.aspx:124
   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.4749.0