SyntaxFix
Write A Post
Hire A Developer
Questions
Firt add a reference to System.web, if you don't have. Do that in the References folder.
System.web
You can then use Hosting.HostingEnvironment.MapPath(path);
Hosting.HostingEnvironment.MapPath(path);