路径转换
public static string ConvertToPhysicalPath(string path) { if (path == null) throw new ArgumentNullException("path"); return (path.StartsWith("/") || path.StartsWith("~")) ? HttpContext.Current.Server.MapPath(path).TrimEnd('\\') : path.TrimEnd('\\'); }