Server Error in '/' Application.

C:\WEBSRC\W_SITE\wNDTV2a\Upload\Da Lat.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:\WEBSRC\W_SITE\wNDTV2a\Upload\Da Lat.jpg

Source Error:


Line 44:             if ((this.imgfile != "") && (this.imgfile.IndexOf("http://") < 0))
Line 45:             {
Line 46:                 SizeF physicalDimension = System.Drawing.Image.FromFile(base.Request.PhysicalApplicationPath + @"Upload\" + this.imgfile).PhysicalDimension;
Line 47:                 this.imageW = int.Parse(physicalDimension.Width.ToString());
Line 48:             }

Source File: c:\WEBSRC\W_SITE\wNDTV2a\News.aspx.cs    Line: 46

Stack Trace:


[FileNotFoundException: C:\WEBSRC\W_SITE\wNDTV2a\Upload\Da Lat.jpg]
   System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +442663
   System.Drawing.Image.FromFile(String filename) +6
   News_News.GetNewsByID(Int32 id) in c:\WEBSRC\W_SITE\wNDTV2a\News.aspx.cs:46
   News_News.ShowDetail(Int32 value) in c:\WEBSRC\W_SITE\wNDTV2a\News.aspx.cs:222
   News_News.Page_Load(Object sender, EventArgs e) in c:\WEBSRC\W_SITE\wNDTV2a\News.aspx.cs:190
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


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