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

未能找到路径“D:\WWW\20210531_abl\5\280837.html”的一部分。

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

异常详细信息: System.IO.DirectoryNotFoundException: 未能找到路径“D:\WWW\20210531_abl\5\280837.html”的一部分。

源错误:


行 49:         context.Response.Cache.SetExpires(DateTime.Now.AddHours(2));
行 50: 
行 51:         context.Response.TransmitFile(path);
行 52:         if ("|.css|.js|.xml|".IndexOf("|" + file_ext + "|") != -1) AppendZip();
行 53:         context.Response.End();

源文件: d:\WWW\CMS\mappath.ashx    行: 51

堆栈跟踪:


[DirectoryNotFoundException: 未能找到路径“D:\WWW\20210531_abl\5\280837.html”的一部分。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +271
   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) +1217
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +123
   System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length) +136
   mappath.ProcessRequest(HttpContext context) in d:\WWW\CMS\mappath.ashx:51
   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.3701.0
XML 地图