'/' 應用程式中發生伺服器錯誤。

找不到檔案 'C:\Inetpub\wwwroot\ccsb\upfiles\ADUpload\en_download_625534780.pdf'。

描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外詳細資訊: System.IO.FileNotFoundException: 找不到檔案 'C:\Inetpub\wwwroot\ccsb\upfiles\ADUpload\en_download_625534780.pdf'。

原始程式錯誤:


行 63: 		Response.ContentType = "application/octet-stream";
行 64: 		Response.AddHeader("Content-Disposition", "attachment;FileName=" + HttpUtility.UrlEncode(file_name, System.Text.Encoding.UTF8));
行 65: 		Response.WriteFile(file_url+file_name);
行 66: 		System.Web.HttpContext.Current.ApplicationInstance.CompleteRequest();
行 67: 		Response.End();

原始程式檔: c:\Inetpub\wwwroot\ccsb\english\04_news\down.aspx    行: 65

堆疊追蹤:


[FileNotFoundException: 找不到檔案 'C:\Inetpub\wwwroot\ccsb\upfiles\ADUpload\en_download_625534780.pdf'。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2013965
   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) +998
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +114
   System.Web.HttpResponse.WriteFile(String filename, Boolean readIntoMemory) +79
   System.Web.HttpResponse.WriteFile(String filename) +15
   ASP.english_04_news_down_aspx.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\ccsb\english\04_news\down.aspx:65
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


版本資訊: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42