Server Error in '/' Application.

E:\websites\tiaanovidyashrm.com\photos\photo2018118102351236DSC00832.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:\websites\tiaanovidyashrm.com\photos\photo2018118102351236DSC00832.JPG

Source Error:


Line 12:         string file = Request.QueryString["file"].ToString().Replace('|', '/');
Line 13: 
Line 14:         System.Drawing.Image sourceImage = System.Drawing.Image.FromFile(Server.MapPath(file));
Line 15:         sHeight = sourceImage.Height;
Line 16:         sWidth = sourceImage.Width;

Source File: e:\websites\tiaanovidyashrm.com\MakeThumbnail.aspx.cs    Line: 14

Stack Trace:


[FileNotFoundException: E:\websites\tiaanovidyashrm.com\photos\photo2018118102351236DSC00832.JPG]
   System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +643869
   MakeThumbnail.Page_Load(Object sender, EventArgs e) in e:\websites\tiaanovidyashrm.com\MakeThumbnail.aspx.cs:14
   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.4700.0