public static string GetRootPath()
{
string completePath = HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath).Replace("/", "\\");
string rootPath = completePath + "\\";
return rootPath;
}This code snippet is for get root path of any web application that is deployed on live location.
