Server Error in '/' Application.

Could not find a part of the path 'D:\Vhost\mbzfalconryschool.com\httpdocs\wcms\log\log.txt'.

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:\Vhost\mbzfalconryschool.com\httpdocs\wcms\log\log.txt'.

Source Error:


Line 64:     {
Line 65:         string ipLocationUrl = "http://en.utrace.de/?query={0}";
Line 66:         StreamWriter strWriter = new StreamWriter(string.Format("{0}{1}log/log.txt", ApplicationContext.ApplicationRoot, ApplicationContext.WCMS_FOLDER), true);
Line 67:         ErrorInfo err = ErrorInfo.CreateInstance();
Line 68:         strWriter.WriteLine("Requested URL: {0}", err.RequestedUrl);

Source File: d:\vhost\mbzfalconryschool.com\httpdocs\Global.asax    Line: 66

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\Vhost\mbzfalconryschool.com\httpdocs\wcms\log\log.txt'.]
   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
   ASP.global_asax.AppendLog(String message) in d:\vhost\mbzfalconryschool.com\httpdocs\Global.asax:66
   ASP.global_asax.ProcessRequest() in d:\vhost\mbzfalconryschool.com\httpdocs\Global.asax:58
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in d:\vhost\mbzfalconryschool.com\httpdocs\Global.asax:33
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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