“/”应用程序中的服务器错误。

未能找到文件“D:\wwwroot\wzjs2012080012\web\uploads\UploadFile\Sign-up Table for Public Seminar20120719中文.doc”。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IO.FileNotFoundException: 未能找到文件“D:\wwwroot\wzjs2012080012\web\uploads\UploadFile\Sign-up Table for Public Seminar20120719中文.doc”。

源错误:


行 54:         info.ExecuteNonQuerySQl("INSERT INTO " + DB.DBPrefix + "DownloadStatistics (MediaFileID,GuestType,UserID,IP,iLanguage) VALUES(148," + GuestType + "," + UserID + ",'" + Request.UserHostAddress + "',0)", null);
行 55: 
行 56:         FileStream fileStream = new FileStream(Server.MapPath(filename), FileMode.Open);
行 57:         long fileSize = fileStream.Length;
行 58:         Context.Response.ContentType = "application/octet-stream";

源文件: d:\wwwroot\wzjs2012080012\web\schedule\faxdown.aspx.cs    行: 56

堆栈跟踪:


[FileNotFoundException: 未能找到文件“D:\wwwroot\wzjs2012080012\web\uploads\UploadFile\Sign-up Table for Public Seminar20120719中文.doc”。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +12601930
   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) +738
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +62
   System.IO.FileStream..ctor(String path, FileMode mode) +57
   schedule_faxdown.Page_Load(Object sender, EventArgs e) in d:\wwwroot\wzjs2012080012\web\schedule\faxdown.aspx.cs:56
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4494.0