System.Web.HttpContext.Current.Server.MapPath()问题我看到好多都这么写为什么我这提示没有 web 类?[解决办法]因为你虽然引用了System.web.dll但是没有using System.Web.HttpContext.Current;你直接用System.Web.HttpContext.Current.Server.MapPath()就行了