public static RptAgronomy GetAgronomyData() { const string METHOD_NAME = "GetAgronomyData"; RptAgronomy agronomy = null; try { System.Web.Caching.Cache cache = System.Web.HttpContext.Current.Cache; agronomy = cache["RptAgronomy"] as RptAgronomy; if (agronomy == null) { agronomy = new RptAgronomy(); //agronomy.Load(WSCI.Common.AppHelper.AppPath() + @"ZHost/XML/RptAgronomy.xml"); agronomy.Load(); //AppDomain.CurrentDomain.SetData("RptAgronomy", agronomy); cache.Insert("RptAgronomy", agronomy, null, DateTime.Now.AddMinutes(15), TimeSpan.Zero); } } catch (Exception ex) { string errMsg = MOD_NAME + METHOD_NAME; WSCIEMP.Common.CException wscEx = new WSCIEMP.Common.CException(errMsg, ex); throw (wscEx); } return agronomy; }