Server Error in '/' Application.

Could not find a part of the path 'C:\WebSite\www.iLabe.Cn\OtherInfo\clipartimg\sale5.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:\WebSite\www.iLabe.Cn\OtherInfo\clipartimg\sale5.jpg'.

Source Error:


Line 78:             Response.ContentType = "Application/Unknown";
Line 79:             Response.AddHeader("Content-Disposition", "attachment;filename=" + Server.UrlEncode(Path.GetFileName(realPath)));
Line 80:             Response.WriteFile(realPath);
Line 81:             Response.End();
Line 82:         }

Source File: c:\WebSite\www.iLabe.Cn\Support\DownLoad.aspx.cs    Line: 80

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'C:\WebSite\www.iLabe.Cn\OtherInfo\clipartimg\sale5.jpg'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +853
   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) +2737
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +89
   System.Web.HttpResponse.WriteFile(String filename, Boolean readIntoMemory) +105
   Support_DownLoad.Download() in c:\WebSite\www.iLabe.Cn\Support\DownLoad.aspx.cs:80
   Support_DownLoad.Page_Load(Object sender, EventArgs e) in c:\WebSite\www.iLabe.Cn\Support\DownLoad.aspx.cs:34
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +137
   Base_Page.OnLoad(EventArgs e) in c:\WebSite\www.iLabe.Cn\App_Code\Base_Page.cs:61
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2524


Version Information: Microsoft .NET Framework Version:2.0.50727.8806; ASP.NET Version:2.0.50727.8762