What I must do to make Server.MapPath work? I have using System.Web;
Server.MapPath
using System.Web;
what else? When I type Server there is no quick resu
Server
System.Web.HttpContext.Current.Server.MapPath("~/") gives null if we call it from a thread.
System.Web.HttpContext.Current.Server.MapPath("~/")
So, Try to use
System.Web.Hosting.HostingEnvironment.MapPath("~/")