Server Error in '/' Application.

Could not find a part of the path 'c:\inetpub\wwwroot\librosenred.com\fragmentos\losdelitosdedios_f.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 'c:\inetpub\wwwroot\librosenred.com\fragmentos\losdelitosdedios_f.html'.

Source Error:


Line 287:
Line 288:                                        Dim contenidopagHTML As String = GetWebPageAsStringShort2(urlAux)
Line 289:                                        Dim myStreamHTML As New StreamWriter(path + nombreArchivo.Replace(".aspx", ".html"), False, System.Text.Encoding.Default)
Line 290:
Line 291:                                        myStreamHTML.WriteLine(contenidopagHTML.Replace("</body>", elScript))

Source File: C:\inetpub\wwwroot\librosenred.com\template\404.aspx.vb    Line: 289

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'c:\inetpub\wwwroot\librosenred.com\fragmentos\losdelitosdedios_f.html'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +271
   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) +1217
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +144
   System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) +123
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) +103
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) +30
   template._404.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\librosenred.com\template\404.aspx.vb:289
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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