Server Error in '/' Application.

Could not find a part of the path 'D:\wwwroot\THAINGUYENTRADE.VINANET.ONLINE\layout\pages\login\head\index.html'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\wwwroot\THAINGUYENTRADE.VINANET.ONLINE\layout\pages\login\head\index.html'.

Source Error:


Line 410:        Dim rv As String = ""
Line 411:        Dim temp As String
Line 412:        Dim sw As StreamReader = File.OpenText(FN(path))
Line 413:        temp = sw.ReadToEnd()
Line 414:        sw.Close()

Source File: D:\wwwroot\THAINGUYENTRADE.VINANET.ONLINE\App_Code\pages\webpages.vb    Line: 412

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\wwwroot\THAINGUYENTRADE.VINANET.ONLINE\layout\pages\login\head\index.html'.]
   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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +146
   System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) +177
   System.IO.StreamReader..ctor(String path) +55
   System.IO.File.OpenText(String path) +46
   cLayout.layout(String path) in D:\wwwroot\THAINGUYENTRADE.VINANET.ONLINE\App_Code\pages\webpages.vb:412
   pConfig.get_wLayout(String path) in D:\wwwroot\THAINGUYENTRADE.VINANET.ONLINE\App_Code\pages\webpages.vb:62
   cFrontEnd.pageHead() in D:\wwwroot\THAINGUYENTRADE.VINANET.ONLINE\App_Code\pages\webpages.vb:598
   index_Default.Page_Load(Object sender, EventArgs e) in D:\wwwroot\THAINGUYENTRADE.VINANET.ONLINE\index.aspx.vb:130
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4682.0