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 result option (intelli-sense) for Server.
Server
Any help?
you can try using this
System.Web.HttpContext.Current.Server.MapPath(path);
or use HostingEnvironment.MapPath
HostingEnvironment.MapPath
System.Web.Hosting.HostingEnvironment.MapPath(path);
1.4m articles
1.4m replys
5 comments
57.0k users