SyntaxFix
Write A Post
Hire A Developer
Questions
You should reference System.Web and call:
HttpContext.Current.Server.MapPath(...)