Server Error in '/' Application.

Could not find a part of the path 'C:\inetpub\wwwroot\NHS\PositiveFashion-Old\PositiveFashion_CMS-old\uploads\files\1\CFIN\Circular-Manfacuring-report-1.pdf'.

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\NHS\PositiveFashion-Old\PositiveFashion_CMS-old\uploads\files\1\CFIN\Circular-Manfacuring-report-1.pdf'.

Source Error:


Line 30:                   "attachment; filename=""" & Path.GetFileName(FilePath) & """")
Line 31:                 Response.Flush()
Line 32:                 Response.WriteFile(FilePath)
Line 33:                 Response.End()
Line 34:             End If

Source File: C:\inetpub\wwwroot\NHS\PositiveFashion-Old\PositiveFashion_CMS-old\resources_download.aspx    Line: 32

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'C:\inetpub\wwwroot\NHS\PositiveFashion-Old\PositiveFashion_CMS-old\uploads\files\1\CFIN\Circular-Manfacuring-report-1.pdf'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +271
   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) +1217
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +123
   System.Web.HttpResponse.WriteFile(String filename, Boolean readIntoMemory) +103
   ASP.resources_download_aspx.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\NHS\PositiveFashion-Old\PositiveFashion_CMS-old\resources_download.aspx:32
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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