App_Code文件夹下用Server.MapPath HttpContext.Current.Server.MapPath 或 HttpServerUtility su = HttpContext.Current.Server; su.MapPath( "xxx ");