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

找不到檔案 'D:\WWWroot\Webgene\02_08southvillage\Images\NoLecture.jpg'。

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

例外詳細資訊: System.IO.FileNotFoundException: 找不到檔案 'D:\WWWroot\Webgene\02_08southvillage\Images\NoLecture.jpg'。

原始程式錯誤:


行 48:     Private Function TempImageData() As Byte()
行 49:         Dim rtc() As Byte
行 50:         Using fs As New FileStream(HttpContext.Current.Server.MapPath("~/Images/NoLecture.jpg"), FileMode.Open, FileAccess.Read)
行 51:             ReDim rtc(fs.Length)
行 52:             fs.Read(rtc, 0, rtc.Length)

原始程式檔: D:\WWWroot\Webgene\02_08southvillage\Services\LectureNotesFileHandler.ashx    行: 50

堆疊追蹤:


[FileNotFoundException: 找不到檔案 'D:\WWWroot\Webgene\02_08southvillage\Images\NoLecture.jpg'。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +305
   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) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) +67
   LectureNotesFileHandler.TempImageData() in D:\WWWroot\Webgene\02_08southvillage\Services\LectureNotesFileHandler.ashx:50
   LectureNotesFileHandler.ProcessRequest(HttpContext context) in D:\WWWroot\Webgene\02_08southvillage\Services\LectureNotesFileHandler.ashx:28
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


版本資訊: Microsoft .NET Framework 版本:2.0.50727.3662; ASP.NET 版本:2.0.50727.3668