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

找不到路徑 'C:\webdata\slhsweb\english\#\eng-principal.htm' 的一部分。

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

例外狀況詳細資訊: System.IO.DirectoryNotFoundException: 找不到路徑 'C:\webdata\slhsweb\english\#\eng-principal.htm' 的一部分。

原始程式錯誤:


行 381:    
行 382:     LogFile = Server.MapPath(linkfile) 
行 383:     dim objReader as new StreamReader(LogFile,System.Text.Encoding.Default)
行 384:     Content = objReader.ReadToEnd.ToString
行 385:     objReader.Close

原始程式檔: C:\webdata\slhsweb\english\default.aspx    行: 383

堆疊追蹤:


[DirectoryNotFoundException: 找不到路徑 'C:\webdata\slhsweb\english\#\eng-principal.htm' 的一部分。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +219
   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) +776
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +66
   System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) +101
   System.IO.StreamReader..ctor(String path, Encoding encoding) +21
   ASP.english_default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\webdata\slhsweb\english\default.aspx:383
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1303


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