Server Error in '/' Application.

C:\vietnhatschool\uploadimages\thuvienanh\hvxwwcr5.xz4.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: C:\vietnhatschool\uploadimages\thuvienanh\hvxwwcr5.xz4.jpg

Source Error:


Line 22:         int W = imgwidth;
Line 23:         int H = imgHeight;
Line 24:         Image img = Image.FromFile(context.Server.MapPath(imgPath));
Line 25: 
Line 26:         H = img.Height * W / img.Width;

Source File: c:\vietnhatschool\ThumbNailHandler.ashx    Line: 24

Stack Trace:


[FileNotFoundException: C:\vietnhatschool\uploadimages\thuvienanh\hvxwwcr5.xz4.jpg]
   System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +643869
   ThumbNailHandler.ProcessRequest(HttpContext context) in c:\vietnhatschool\ThumbNailHandler.ashx:24
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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