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

“https:/fii-space.oss-cn-hangzhou.aliyuncs.com/fii/course/%E6%95%99%E8%82%B2%E6%9C%BA%E8%AF%B4%E6%98%8E%E4%B9%A6/003_F600-10%E6%9C%BA%E6%95%99%E5%AD%A6%E5%A5%97%E4%BB%B6%E7%89%88%E8%AF%B4%E6%98%8E%E4%B9%A6(14X8cm)_V1.2_1222.pdf”不是有效的虚拟路径。

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

异常详细信息: System.Web.HttpException: “https:/fii-space.oss-cn-hangzhou.aliyuncs.com/fii/course/%E6%95%99%E8%82%B2%E6%9C%BA%E8%AF%B4%E6%98%8E%E4%B9%A6/003_F600-10%E6%9C%BA%E6%95%99%E5%AD%A6%E5%A5%97%E4%BB%B6%E7%89%88%E8%AF%B4%E6%98%8E%E4%B9%A6(14X8cm)_V1.2_1222.pdf”不是有效的虚拟路径。

源错误:


行 24:         
行 25: 
行 26:             string strPath = Server.MapPath(ModelInfo.FileURL);
行 27: 
行 28:             if (!System.IO.File.Exists(strPath))

源文件: d:\wwwroot\downloadfile.aspx.cs    行: 26

堆栈跟踪:


[HttpException (0x80004005): “https:/fii-space.oss-cn-hangzhou.aliyuncs.com/fii/course/%E6%95%99%E8%82%B2%E6%9C%BA%E8%AF%B4%E6%98%8E%E4%B9%A6/003_F600-10%E6%9C%BA%E6%95%99%E5%AD%A6%E5%A5%97%E4%BB%B6%E7%89%88%E8%AF%B4%E6%98%8E%E4%B9%A6(14X8cm)_V1.2_1222.pdf”不是有效的虚拟路径。]
   System.Web.Util.UrlPath.CheckValidVirtualPath(String path) +11738050
   System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +143
   System.Web.VirtualPath.Combine(VirtualPath relativePath) +167
   System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +109
   System.Web.HttpServerUtility.MapPath(String path) +130
   downloadfile.Page_Load(Object sender, EventArgs e) in d:\wwwroot\downloadfile.aspx.cs:26
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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