获取在服务器上面的路径

 string pathfile = HttpContext.Current.Server.MapPath("XMLFile.xml");

原文地址:https://www.cnblogs.com/siyechenmu/p/4452962.html