Server Error in '/' Application.

Could not find a part of the path 'C:\Data\Uploads92ActivismImgCache\a41w0o0.jpg'.

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:\Data\Uploads92ActivismImgCache\a41w0o0.jpg'.

Source Error:


Line 52:             if (cachedFile.LastWriteTime < act.CreatedDateTime)
Line 53:             {
Line 54:                 cachedFile.Delete();
Line 55:                 throw new FileNotFoundException("Cached File Invalid");
Line 56:             }

Source File: c:\inetpub\Webs\PirateWeb Data\Handlers\DisplayActivism.aspx.cs    Line: 54

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'C:\Data\Uploads92ActivismImgCache\a41w0o0.jpg'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +338
   System.IO.FileInfo.Delete() +14262802
   Handlers_DisplayActivism.Page_Load(Object sender, EventArgs e) in c:\inetpub\Webs\PirateWeb Data\Handlers\DisplayActivism.aspx.cs:54
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178


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