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

“http:/candtkimball.blogspot.com/”不是有效的虚拟路径。

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

异常详细信息: System.Web.HttpException: “http:/candtkimball.blogspot.com/”不是有效的虚拟路径。

源错误:


行 36:                 Response.AppendHeader("Content-Disposition", "attachment; filename=" + fileName);
行 37: 
行 38:                 Response.TransmitFile(Server.MapPath(path));
行 39:                 Response.End();
行 40:             }

源文件: d:\web\ChinaFastener.com\magazine\Redirect.aspx.cs    行: 38

堆栈跟踪:


[HttpException (0x80004005): “http:/candtkimball.blogspot.com/”不是有效的虚拟路径。]
   System.Web.Util.UrlPath.CheckValidVirtualPath(String path) +9773795
   System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +134
   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
   magazine_Redirect.Page_Load(Object sender, EventArgs e) in d:\web\ChinaFastener.com\magazine\Redirect.aspx.cs:38
   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.3815.0