Server Error in '/institucional' 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 35:         'End If
Line 36: 
Line 37:         Dim imagem As New Oficina.Drawing.Image(bin.CampoImagem)
Line 38:         
Line 39:         'Dim mode As String = "Str"

Source File: E:\SITES\JOAOFORTES240\Root_www.joaofortes.com.br\institucional\Handler\ImagemNot.ashx    Line: 37

Stack Trace:


[ArgumentException: Parameter is not valid.]
   System.Drawing.Bitmap..ctor(Stream stream) +612689
   Oficina.Drawing.Image..ctor(Byte[] Bitmap) +99
   Imagem.ProcessRequest(HttpContext context) in E:\SITES\JOAOFORTES240\Root_www.joaofortes.com.br\institucional\Handler\ImagemNot.ashx:37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171


Version Information: Microsoft .NET Framework Version:2.0.50727.8009; ASP.NET Version:2.0.50727.8015