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

无法使用前导 .. 在顶级目录上退出。

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

异常详细信息: System.Web.HttpException: 无法使用前导 .. 在顶级目录上退出。

源错误:


行 65:             if (!String.IsNullOrEmpty(SolutionLogo))
行 66:             {
行 67:                 string fullImageName = Server.MapPath(SolutionLogo);
行 68:                // Response.Write(fullImageName + "<BR>");
行 69:                 if (File.Exists(fullImageName))

源文件: e:\vhost\da89866e81d090915ceb54b27f509e55\httpdocs\solutionDetail.aspx.cs    行: 67

堆栈跟踪:


[HttpException (0x80004005): 无法使用前导 .. 在顶级目录上退出。]
   System.Web.Util.UrlPath.ReduceVirtualPath(String path) +9966288
   System.Web.Util.UrlPath.Reduce(String path) +53
   System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +228
   System.Web.VirtualPath.Combine(VirtualPath relativePath) +169
   System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +91
   System.Web.HttpServerUtility.MapPath(String path) +108
   solutionDetail.BindData() in e:\vhost\da89866e81d090915ceb54b27f509e55\httpdocs\solutionDetail.aspx.cs:67
   solutionDetail.Page_Load(Object sender, EventArgs e) in e:\vhost\da89866e81d090915ceb54b27f509e55\httpdocs\solutionDetail.aspx.cs:49
   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.4700.0