string currentDir = HttpContext.Current.Request.ServerVariables["APPL_PHYSICAL_PATH"];
路径为currentDir+@"\data\..."

context.Server.MapPath(@"~\w3c\"));

相关文章: