“/”应用程序中的服务器错误。

未能找到文件“d:\wwwroot\tsjt.com\big5\UploadFile\2020-02\099ff63d-2e8a-4e72-88e0-1b54dd4f90cf.pdf”。

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IO.FileNotFoundException: 未能找到文件“d:\wwwroot\tsjt.com\big5\UploadFile\2020-02\099ff63d-2e8a-4e72-88e0-1b54dd4f90cf.pdf”。

源错误:


行 100:            string fileExtension = file.Extension;  //文件后缀
行 101:            fileName = fallModel.Ftitle1 + fileExtension;
行 102:            filesize = file.Length / 1024 / 1024;  //文件大小(MB)
行 103:            if (filesize == 0)
行 104:            {

源文件: d:\wwwroot\tsjt.com\big5\WebUserControl\NewsDetail.ascx.cs    行: 102

堆栈跟踪:


[FileNotFoundException: 未能找到文件“d:\wwwroot\tsjt.com\big5\UploadFile\2020-02\099ff63d-2e8a-4e72-88e0-1b54dd4f90cf.pdf”。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +305
   System.IO.FileInfo.get_Length() +7609320
   WebUserControl_NewsDetail.SetDownLoadFileInfo(Int32 ftid) in d:\wwwroot\tsjt.com\big5\WebUserControl\NewsDetail.ascx.cs:102
   WebUserControl_NewsDetail.Page_Load(Object sender, EventArgs e) in d:\wwwroot\tsjt.com\big5\WebUserControl\NewsDetail.ascx.cs:58
   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) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本信息: Microsoft .NET Framework 版本:2.0.50727.8745; ASP.NET 版本:2.0.50727.8745