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

本人试过多种方法,均不可用,最后灵光一动,为何不能人引用的命名空间入手了,以下是解决方法,经本人验证.

System.Web.HttpContext.Current.Server.MapPath

给同是菜鸟的朋友参考.