Server Error in '/' Application.

Could not find a part of the path 'C:\webspace\sepongroup.com.vn\httpdocs\'.

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:\webspace\sepongroup.com.vn\httpdocs\'.

Source Error:


Line 37:             Response.AppendHeader("content-disposition", "attachment; filename=" + fileName);
Line 38:             Response.ContentType = "application/octet-stream";
Line 39:             Response.WriteFile(filePath);
Line 40:             Response.Flush();
Line 41:             Response.End();

Source File: c:\webspace\sepongroup.com.vn\httpdocs\Download.aspx.cs    Line: 39

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'C:\webspace\sepongroup.com.vn\httpdocs\'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +239
   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) +2580
   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) +102
   Download.Page_Load(Object sender, EventArgs e) in c:\webspace\sepongroup.com.vn\httpdocs\Download.aspx.cs:39
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062