public static string GetConfigPath() { string path = ""; if (AppId != null) { if (AppId.IndexOf('D') > -1) { path = ConfigurationManager.AppSettings["DevelopAppPath"]; } else { if ((AppId.IndexOf('R') <= -1)) { path = ConfigurationManager.AppSettings["AppPath"]; } else { path = ConfigurationManager.AppSettings["ReleaseAppPath"]; } } if (!path.EndsWith("\\")) { path += "\\"; } return(path.Replace("#ROOT#", GetWebRoot())); } else { return(GetWebRoot()); } }