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

未能映射路径“/Templates/(('.,./news_show.htm”。

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

异常详细信息: System.Web.HttpException: 未能映射路径“/Templates/(('.,./news_show.htm”。

源错误:


行 5:      if (Request.QueryString["id"] != null)
行 6:      {
行 7:          Response.Write(new html().list_page(id, Request.QueryString["f"]));
行 8:  
行 9:      }

源文件: d:\wwwroot\liangxing2019\wwwroot\page.aspx    行: 7

堆栈跟踪:


[HttpException (0x80004005): 未能映射路径“/Templates/(('.,./news_show.htm”。]
   System.Web.Configuration.ProcessHostMapPath.MapPathCaching(String siteID, VirtualPath path) +808
   System.Web.Configuration.ProcessHostMapPath.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath path) +13
   System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +339
   System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath) +43
   System.Web.VirtualPath.MapPathInternal() +9
   System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +110
   System.Web.HttpServerUtility.MapPath(String path) +104
   PZ.Templates.Translation.slYgCt1F1(String  ) in e:\CMS\PZ_CMS5.6\PZ.Templates\Translation.cs:2496
   PZ.Templates.Translation.List_Page(String _modelhtml, DataRow _contentrow, String _prevtitle, Int32 _prevID, String _prevfilename, String _nexttitle, Int32 _nextID, String _nextfilename) in e:\CMS\PZ_CMS5.6\PZ.Templates\Translation.cs:266
   html.list_page(Int32 id, String TemplatesPath) +961
   ASP.page_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\wwwroot\liangxing2019\wwwroot\page.aspx:7
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +13
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +66
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1303


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