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

找不到路徑 'D:\WebSystem\Education\' 的一部分。

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

例外狀況詳細資訊: System.IO.DirectoryNotFoundException: 找不到路徑 'D:\WebSystem\Education\' 的一部分。

原始程式錯誤:


行 53:         }
行 54: 
行 55:         Response.WriteFile(sFilePath);
行 56:         Response.Flush();
行 57: 

原始程式檔: d:\WebSystem\Education\Object\donload.aspx.cs    行: 55

堆疊追蹤:


[DirectoryNotFoundException: 找不到路徑 'D:\WebSystem\Education\' 的一部分。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +281
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +1242
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +126
   System.Web.HttpResponse.WriteFile(String filename, Boolean readIntoMemory) +106
   Object_donload.Page_Load(Object sender, EventArgs e) in d:\WebSystem\Education\Object\donload.aspx.cs:55
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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