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

未能找到文件“D:\wwwroot\imtmgroup\wwwroot\uploadfiles\”。

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

异常详细信息: System.IO.FileNotFoundException: 未能找到文件“D:\wwwroot\imtmgroup\wwwroot\uploadfiles\”。

源错误:


行 17:         System.Web.HttpContext.Current.Response.ContentType = "application/octet-stream";
行 18:         System.Web.HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=" + DownloadFile.Name + "");
行 19:         System.Web.HttpContext.Current.Response.AppendHeader("Content-Length", DownloadFile.Length.ToString());
行 20:         System.Web.HttpContext.Current.Response.WriteFile(DownloadFile.FullName);
行 21:         System.Web.HttpContext.Current.Response.Flush();

源文件: d:\wwwroot\imtmgroup\wwwroot\Ajax\download.ashx    行: 19

堆栈跟踪:


[FileNotFoundException: 未能找到文件“D:\wwwroot\imtmgroup\wwwroot\uploadfiles\”。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +305
   System.IO.FileInfo.get_Length() +7622888
   download.ProcessRequest(HttpContext context) in d:\wwwroot\imtmgroup\wwwroot\Ajax\download.ashx:19
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


版本信息: Microsoft .NET Framework 版本:2.0.50727.8806; ASP.NET 版本:2.0.50727.8762