Server Error in '/' Application.

E:\Rooms\u266901\farengate.com\www\/foto/13973b.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: E:\Rooms\u266901\farengate.com\www\/foto/13973b.jpg

Source Error:


Line 340:            public void getPhotoWH(out int W, out int H)
Line 341:            {
Line 342:                Image img = Bitmap.FromFile(Data.MapPath + "/foto/" + ID.ToString() + "b" + ext);
Line 343:                W = img.Width;
Line 344:                H = img.Height;

Source File: e:\rooms\u266901\farengate.com\www\App_Code\Foto.cs    Line: 342

Stack Trace:


[FileNotFoundException: E:\Rooms\u266901\farengate.com\www\/foto/13973b.jpg]
   System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +490582
   System.Drawing.Image.FromFile(String filename) +12
   CMS.FotoModule.FotoItem.getPhotoWH(Int32& W, Int32& H) in e:\rooms\u266901\farengate.com\www\App_Code\Foto.cs:342
   CMS.FotoModule.FotoItem.BigImageHTMLwh(String style, Int32 width, Int32 height) in e:\rooms\u266901\farengate.com\www\App_Code\Foto.cs:639
   CMS.FotoModule.FotoItem.BigImageHTMLwh(Int32 width, Int32 height) in e:\rooms\u266901\farengate.com\www\App_Code\Foto.cs:731
   pages.RenderItemBlock(CatItem C) in e:\rooms\u266901\farengate.com\www\catalog.aspx.cs:64
   pages.Page_Load(Object sender, EventArgs e) in e:\rooms\u266901\farengate.com\www\catalog.aspx.cs:261
   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.4690.0