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

未能找到文件“E:\CITSERPFile”。

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

异常详细信息: System.IO.FileNotFoundException: 未能找到文件“E:\CITSERPFile”。

源错误:


行 13:         string filename = context.Server.UrlDecode(context.Request.QueryString["filename"]);
行 14:         FileInfo info = new FileInfo(filepath);
行 15:         long fileSize = info.Length;
行 16:         context.Response.Clear();
行 17:         context.Response.ContentType = "application/x-zip-compressed";

源文件: e:\CITSERPFile\DownLoadFile.ashx    行: 15

堆栈跟踪:


[FileNotFoundException: 未能找到文件“E:\CITSERPFile”。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1344
   System.IO.FileInfo.get_Length() +14671554
   DownLoadFile.ProcessRequest(HttpContext context) in e:\CITSERPFile\DownLoadFile.ashx:15
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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