application启动的时候并没有对应的HttpContext.Current请求所以会出错 用System.Web.Hosting.HostingEnvironment.MapPath就可以了 相关文章: 2021-11-30 2021-07-24 2022-12-23 2022-12-23