Server Error in '/' Application.

Could not find a part of the path 'D:\Website\wellfareinfo\Receipts\WordDocs'.

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:\Website\wellfareinfo\Receipts\WordDocs'.

Source Error:


Line 42:         DateTime timeLimit = DateTime.Now.AddMinutes(0 - maxLifeTime);
Line 43: 
Line 44:         string[] filePaths = System.IO.Directory.GetFiles(folderPath, "*.doc");
Line 45: 
Line 46:         for (int i = 0; i <= filePaths.Length - 1; i++)

Source File: d:\Website\wellfareinfo\Global.asax    Line: 44

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\Website\wellfareinfo\Receipts\WordDocs'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +239
   System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) +2134
   System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption) +52
   ASP.global_asax.ClearTemporaryFiles(String folderPath, Int32 maxLifeTime) in d:\Website\wellfareinfo\Global.asax:44
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in d:\Website\wellfareinfo\Global.asax:25
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +11295676
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +366
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1281
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +85
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +263


Version Information: Microsoft .NET Framework Version:2.0.50727.8813; ASP.NET Version:2.0.50727.8951