在类文件中引用Server对象

using System.Web.HttpContext.Current.Server.MapPath
原文地址:https://www.cnblogs.com/lavenderzh/p/1343731.html