有我自已的类中调用了MapPath, 报错.
location = System.Web.HttpContext.Current.Server.MapPath ("/");
报错:未能映射路径“/”。
我CALL这个类时不想传参数进去,可以解决吗?
location = System.Web.HttpContext.Current.Server.MapPath ("/");
报错:未能映射路径“/”。
我CALL这个类时不想传参数进去,可以解决吗?
location = System.Web.HttpContext.Current.Server.MapPath("~");
网站的根
location = System.Web.HttpContext.Current.Server.MapPath("/");这个应该没有是对的