摘要:
在线程中无法Mappath,主要是因为:HttpContext.Current为null,所以: 关键在于构造一个HttpContextpublic class CSiteConfig { private static HttpContext ct = new HttpContext(new HttpRequest("", "http://dewrqiwe5555rqwekxczvm23482734zxcadfasdf.com", ""), new HttpResponse(new System.IO.StringWriter())) 阅读全文