Server Error in '/' Application.

C:\WEBSRC\W_SITE\wECCV2\Upload\iso45.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\wECCV2\Upload\iso45.jpg

Source Error:


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

Source File: c:\WEBSRC\W_SITE\wECCV2\News.aspx.cs    Line: 50

Stack Trace:


[FileNotFoundException: C:\WEBSRC\W_SITE\wECCV2\Upload\iso45.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\wECCV2\News.aspx.cs:50
   News_News.ShowDetail(Int32 value) in c:\WEBSRC\W_SITE\wECCV2\News.aspx.cs:303
   News_News.Page_Load(Object sender, EventArgs e) in c:\WEBSRC\W_SITE\wECCV2\News.aspx.cs:271
   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