[WebMethod]
public string ShowWebServicePhysicalPath()
{
string strpath=System.Web.HttpContext.Current.Request.PhysicalPath;
return strpath.Substring(0,strpath.LastIndexOf(@"\"));
}
转载于:https://www.cnblogs.com/lanbaoming/archive/2011/08/05/2128671.html