I need to access the folder in ~/Templates in my application. I didn't get the suggestion for server.MapPath. Why so?
Also, I tried using the HostingEnvironment.MapPath and System.Web.HttpContext.Current.Server.MapPath.But it returns null. Is there any solution for this?
var path = System.Web.HttpContext.Current.Server.MapPath("~/Templates");