Server Error in '/' Application.

Could not find a part of the path 'D:\Projects\Documents\PM Docs on Elena (Elena)\Project Proposal (PracticalMaths.com).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 'D:\Projects\Documents\PM Docs on Elena (Elena)\Project Proposal (PracticalMaths.com).pdf'.

Source Error:


Line 23:         Response.ContentType = mimeType;
Line 24:         Response.Flush();
Line 25:         Response.TransmitFile(fileName);
Line 26:         //Response.Close();
Line 27:     }

Source File: c:\HostingSpaces\RectoryDesigns\www.rectorydesigns.co.uk\wwwroot\LoadProductAttachment.aspx.cs    Line: 25

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'D:\Projects\Documents\PM Docs on Elena (Elena)\Project Proposal (PracticalMaths.com).pdf'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +193
   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) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +66
   System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length) +134
   System.Web.HttpResponse.TransmitFile(String filename) +12
   Public_LoadProductAttachment.Page_Load(Object sender, EventArgs e) in c:\HostingSpaces\RectoryDesigns\www.rectorydesigns.co.uk\wwwroot\LoadProductAttachment.aspx.cs:25
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8669; ASP.NET Version:2.0.50727.8015