Server Error in '/' Application.

Could not find a part of the path 'D:\Vhost\daburon-partners.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\daburon-partners.com\httpdocs\wcms\log\log.txt'.

Source Error:


Line 246:
Line 247:        string ipLocationUrl = "http://en.utrace.de/?query={0}";
Line 248:        StreamWriter strWriter = new StreamWriter(string.Format("{0}{1}log/log.txt", ApplicationContext.ApplicationRoot, ApplicationContext.WCMS_FOLDER), true);
Line 249:        ErrorInfo err = ErrorInfo.CreateInstance();
Line 250:        strWriter.WriteLine("Requested URL: {0}", err.RequestedUrl);

Source File: d:\vhost\daburon-partners.com\httpdocs\Global.asax    Line: 248

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\Vhost\daburon-partners.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\daburon-partners.com\httpdocs\Global.asax:248
   ASP.global_asax.ProcessRequest() in d:\vhost\daburon-partners.com\httpdocs\Global.asax:239
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in d:\vhost\daburon-partners.com\httpdocs\Global.asax:214
   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