asp.net .ashx,cs文件使用server.mappath解决方法

asp.net .ashx文件使用server.mappath解决方法:

System.Web.HttpContext.Current.Server.MapPath

在类文件中使用:

System.Web.HttpServerUtility server = System.Web.HttpContext.Current.Server;
server.MapPath(...)

原文地址:https://www.cnblogs.com/leeafei/p/4994295.html