SyntaxFix
Write A Post
Hire A Developer
Questions
Use this System.Web.Hosting.HostingEnvironment.MapPath().
HostingEnvironment.MapPath("~/file")
Wonder why nobody mentioned it here.