Problem
-
namespace Ashwin { public class Global : System.Web.HttpApplication, ICacheManager { protected void Application_Start(object sender, EventArgs e) { //Load the cache for the first time. ReloadCache("All"); } protected void Application_End(object sender, EventArgs e) { //Cleanup anything that we left if we left anything using the SubmitReport.asmx /*string tempPath = Server.MapPath("TempData"); if (System.IO.Directory.Exists(tempPath)) System.IO.Directory.Delete(tempPath, true);*/ } /// <summary> /// When the session starts. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Session_Start(object sender, EventArgs e) { UserSession session = new UserSession(Request); try { LoggedInUserInfo liui = session.Login(); // if user successfully logged in // then store in Session cache if(liui != null) { CacheManager.SetCache("loggedInUser", CacheManager.cacheTypeEnum.Session, liui, this); // get the top 10 Read reports in last 30 days i.e. one month Report report = new Report(); IList list = report.GetTopReadReport(10, DateRangeEnum.OneMonth, ReportClassificationEnum.All, liui.User.UserId); CacheManager.SetCache("TopReadReport", CacheManager.cacheTypeEnum.Session, list, this); FillCache("SavedSearches"); } } catch(Exception exc) { Exception LastException = exc; Session["LastException"] = LastException; ErrorDetail ed = new ErrorDetail(); RecordError recordError = new RecordError(); recordError.Credentials = new System.Net.NetworkCredential(Util.GetConfigValue("WebServicesLogin"), Util.GetConfigValue("WebServicesPwd")); recordError.PreAuthenticate = true; ed.applicationName = "Ashwin20"; ed.browserVersion = Request.ServerVariables["HTTP_USER_AGENT"]; ed.errorUrl = Request.Url.ToString(); ed.note = LastException.Message; ed.stackTrace = LastException.StackTrace; ed.userNa
-
namespace Ashwin { public class Global : System.Web.HttpApplication, ICacheManager { protected void Application_Start(object sender, EventArgs e) { //Load the cache for the first time. ReloadCache("All"); } protected void Application_End(object sender, EventArgs e) { //Cleanup anything that we left if we left anything using the SubmitReport.asmx /*string tempPath = Server.MapPath("TempData"); if (System.IO.Directory.Exists(tempPath)) System.IO.Directory.Delete(tempPath, true);*/ } /// <summary> /// When the session starts. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Session_Start(object sender, EventArgs e) { UserSession session = new UserSession(Request); try { LoggedInUserInfo liui = session.Login(); // if user successfully logged in // then store in Session cache if(liui != null) { CacheManager.SetCache("loggedInUser", CacheManager.cacheTypeEnum.Session, liui, this); // get the top 10 Read reports in last 30 days i.e. one month Report report = new Report(); IList list = report.GetTopReadReport(10, DateRangeEnum.OneMonth, ReportClassificationEnum.All, liui.User.UserId); CacheManager.SetCache("TopReadReport", CacheManager.cacheTypeEnum.Session, list, this); FillCache("SavedSearches"); } } catch(Exception exc) { Exception LastException = exc; Session["LastException"] = LastException; ErrorDetail ed = new ErrorDetail(); RecordError recordError = new RecordError(); recordError.Credentials = new System.Net.NetworkCredential(Util.GetConfigValue("WebServicesLogin"), Util.GetConfigValue("WebServicesPwd")); recordError.PreAuthenticate = true; ed.applicationName = "Ashwin20"; ed.browserVersion = Request.ServerVariables["HTTP_USER_AGENT"]; ed.errorUrl = Request.Url.ToString(); ed.note = LastException.Message; ed.stackTrace = LastException.StackTrace; ed.userNa
Please write your code within code block & describe more :)
-
namespace Ashwin { public class Global : System.Web.HttpApplication, ICacheManager { protected void Application_Start(object sender, EventArgs e) { //Load the cache for the first time. ReloadCache("All"); } protected void Application_End(object sender, EventArgs e) { //Cleanup anything that we left if we left anything using the SubmitReport.asmx /*string tempPath = Server.MapPath("TempData"); if (System.IO.Directory.Exists(tempPath)) System.IO.Directory.Delete(tempPath, true);*/ } /// <summary> /// When the session starts. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Session_Start(object sender, EventArgs e) { UserSession session = new UserSession(Request); try { LoggedInUserInfo liui = session.Login(); // if user successfully logged in // then store in Session cache if(liui != null) { CacheManager.SetCache("loggedInUser", CacheManager.cacheTypeEnum.Session, liui, this); // get the top 10 Read reports in last 30 days i.e. one month Report report = new Report(); IList list = report.GetTopReadReport(10, DateRangeEnum.OneMonth, ReportClassificationEnum.All, liui.User.UserId); CacheManager.SetCache("TopReadReport", CacheManager.cacheTypeEnum.Session, list, this); FillCache("SavedSearches"); } } catch(Exception exc) { Exception LastException = exc; Session["LastException"] = LastException; ErrorDetail ed = new ErrorDetail(); RecordError recordError = new RecordError(); recordError.Credentials = new System.Net.NetworkCredential(Util.GetConfigValue("WebServicesLogin"), Util.GetConfigValue("WebServicesPwd")); recordError.PreAuthenticate = true; ed.applicationName = "Ashwin20"; ed.browserVersion = Request.ServerVariables["HTTP_USER_AGENT"]; ed.errorUrl = Request.Url.ToString(); ed.note = LastException.Message; ed.stackTrace = LastException.StackTrace; ed.userNa
-
namespace Ashwin { public class Global : System.Web.HttpApplication, ICacheManager { protected void Application_Start(object sender, EventArgs e) { //Load the cache for the first time. ReloadCache("All"); } protected void Application_End(object sender, EventArgs e) { //Cleanup anything that we left if we left anything using the SubmitReport.asmx /*string tempPath = Server.MapPath("TempData"); if (System.IO.Directory.Exists(tempPath)) System.IO.Directory.Delete(tempPath, true);*/ } /// <summary> /// When the session starts. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Session_Start(object sender, EventArgs e) { UserSession session = new UserSession(Request); try { LoggedInUserInfo liui = session.Login(); // if user successfully logged in // then store in Session cache if(liui != null) { CacheManager.SetCache("loggedInUser", CacheManager.cacheTypeEnum.Session, liui, this); // get the top 10 Read reports in last 30 days i.e. one month Report report = new Report(); IList list = report.GetTopReadReport(10, DateRangeEnum.OneMonth, ReportClassificationEnum.All, liui.User.UserId); CacheManager.SetCache("TopReadReport", CacheManager.cacheTypeEnum.Session, list, this); FillCache("SavedSearches"); } } catch(Exception exc) { Exception LastException = exc; Session["LastException"] = LastException; ErrorDetail ed = new ErrorDetail(); RecordError recordError = new RecordError(); recordError.Credentials = new System.Net.NetworkCredential(Util.GetConfigValue("WebServicesLogin"), Util.GetConfigValue("WebServicesPwd")); recordError.PreAuthenticate = true; ed.applicationName = "Ashwin20"; ed.browserVersion = Request.ServerVariables["HTTP_USER_AGENT"]; ed.errorUrl = Request.Url.ToString(); ed.note = LastException.Message; ed.stackTrace = LastException.StackTrace; ed.userNa
No one is going to look through this useless unformatted drivel. Format the code using the pre tags, i.e. "code block" and only include what is necessary, not everything.
I know the language. I've read a book. - _Madmatt