Server Error in '/' Application.

d:\\inetpub\\webs\\italiancosplaycom\\public\\utenti_iscritti_foto\\1470_italiancosplayer_20201228160021761.jpg

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.IO.FileNotFoundException: d:\\inetpub\\webs\\italiancosplaycom\\public\\utenti_iscritti_foto\\1470_italiancosplayer_20201228160021761.jpg

Source Error:


Line 110:        if(foto_DT.Rows.Count > 0)
Line 111:        {
Line 112:            System.Drawing.Image img = System.Drawing.Image.FromFile(@"d:\\inetpub\\webs\\italiancosplaycom\\public\\utenti_iscritti_foto\\" + foto_DT.Rows[0]["nome_immagine"].ToString());
Line 113:            // Response.Write("Width: " + img.Width + ", Height: " + img.Height);
Line 114:            url_foto2 = mySett.my_site_root + "public/utenti_iscritti_foto/" + foto_DT.Rows[0]["nome_immagine"].ToString();

Source File: d:\inetpub\webs\italiancosplaycom\dettagliofoto.aspx.cs    Line: 112

Stack Trace:


[FileNotFoundException: d:\\inetpub\\webs\\italiancosplaycom\\public\\utenti_iscritti_foto\\1470_italiancosplayer_20201228160021761.jpg]
   System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +175
   System.Drawing.Image.FromFile(String filename) +7
   _dettagliofoto.get_foto(String id) in d:\inetpub\webs\italiancosplaycom\dettagliofoto.aspx.cs:112
   _dettagliofoto.Page_Load(Object sender, EventArgs e) in d:\inetpub\webs\italiancosplaycom\dettagliofoto.aspx.cs:73
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2602


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175