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 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:


[ArgumentException: Parameter is not valid.]
   System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) +1383142
   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.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.4797.0