一般是路径问题 需要转化为绝对路径 转换为/
if (HttpContext.Current!=null) outPath = HttpContext.Current.Server.MapPath(outPath); outPath = outPath.Replace('\','/');