Server Error in '/' Application.

Could not find a part of the path 'C:\inetpub\wwwroot\vimet\gallerydet\69\log\log.lg'.

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\vimet\gallerydet\69\log\log.lg'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'C:\inetpub\wwwroot\vimet\gallerydet\69\log\log.lg'.]
   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.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) +126
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) +105
   System.IO.StreamWriter..ctor(String path, Boolean append) +57
   System.IO.File.CreateText(String path) +49
   vimet.Pubblico.ScriviLog(String sDati) in C:\Users\grisu\Documents\Visual Studio 2012\Projects\vimet\vimet\Pubblico.vb:18
   vimet.Pubblico.CaricaGalleryDet(String codcom, HtmlGenericControl div_grid, HtmlGenericControl descrizione) in C:\Users\grisu\Documents\Visual Studio 2012\Projects\vimet\vimet\Pubblico.vb:830
   vimet.gallerydet.Page_Load(Object sender, EventArgs e) in C:\Users\grisu\Documents\Visual Studio 2012\Projects\vimet\vimet\gallerydet.aspx.vb:26
   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.4494.0