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 187:    <span style="color:#FFF;"> &copy; Filippo Brunelli <%response.write( DateTime.Now.Year)%></span><br/><br/>
Line 188:    <%
Line 189:	Dim image As Bitmap = New Bitmap(fileName)
Line 190:	Dim pic_time As PropertyItem
Line 191:	Dim Str_pic_time As String

Source File: \\smb-whst-www11\whst_www11$\8b7246544.hostnd\htdocs\www\galleria2015\fotografia.aspx    Line: 189

Stack Trace:


[ArgumentException: Parameter is not valid.]
   System.Drawing.Bitmap..ctor(String filename) +487990
   ASP.galleria2015_fotografia_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in \\smb-whst-www11\whst_www11$\8b7246544.hostnd\htdocs\www\galleria2015\fotografia.aspx:189
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1342


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