'/LearnMgr' 應用程式中發生伺服器錯誤。

找不到檔案 'C:\website\LearnMgr\uploadFile\97'。

描述: 在執行目前 Web 要求的過程中發生未處理的例外狀況。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外狀況詳細資訊: System.IO.FileNotFoundException: 找不到檔案 'C:\website\LearnMgr\uploadFile\97'。

原始程式錯誤:


行 58:         string filePath = path + fileID;
行 59:         System.IO.FileInfo f = new System.IO.FileInfo(filePath);
行 60:         context.Response.AddHeader("Content-Length", f.Length.ToString());
行 61:         context.Response.Flush();
行 62:         context.Response.WriteFile(filePath, false);

原始程式檔: c:\website\LearnMgr\dlFile.ashx    行: 60

堆疊追蹤:


[FileNotFoundException: 找不到檔案 'C:\website\LearnMgr\uploadFile\97'。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1344
   System.IO.FileInfo.get_Length() +14953882
   dlFile.ProcessRequest(HttpContext context) in c:\website\LearnMgr\dlFile.ashx:60
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.4081.0