public void ProcessException(Exception exc) { ErrorLogDataContext db = new ErrorLogDataContext(SystemSetting.SageFrameConnectionString); System.Nullable<int> inID = 0; db.sp_LogInsert(ref inID, (int)SageFrame.Web.SageFrameEnums.ErrorType.AdministrationArea, 11, exc.Message, exc.ToString(), HttpContext.Current.Request.UserHostAddress, HttpContext.Current.Request.RawUrl, true, GetPortalID, GetUsername); }
public void ProcessException(Exception exc) { ErrorLogDataContext db = new ErrorLogDataContext(SystemSetting.SageFrameConnectionString); System.Nullable <int> inID = 0; db.sp_LogInsert(ref inID, (int)SageFrame.Web.SageFrameEnums.ErrorType.AdministrationArea, 11, exc.Message, exc.ToString(), HttpContext.Current.Request.UserHostAddress, HttpContext.Current.Request.RawUrl, true, GetPortalID, GetUsername); }
protected void ProcessException(Exception exc) { ErrorLogDataContext db = new ErrorLogDataContext(SystemSetting.SageFrameConnectionString); System.Nullable<int> inID=0; db.sp_LogInsert(ref inID,(int)SageFrame.Web.SageFrameEnums.ErrorType.AdministrationArea, 11, exc.Message, exc.ToString(), HttpContext.Current.Request.UserHostAddress, Request.RawUrl, true, GetPortalID, GetUsername); SageFrameConfig pagebase = new SageFrameConfig(); if (pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseCustomErrorMessages)) { ShowMessage(SageMessageTitle.Exception.ToString(), exc.Message, exc.ToString(), SageMessageType.Error); } }
protected void ProcessException(Exception exc) { ErrorLogDataContext db = new ErrorLogDataContext(SystemSetting.SageFrameConnectionString); System.Nullable <int> inID = 0; db.sp_LogInsert(ref inID, (int)SageFrame.Web.SageFrameEnums.ErrorType.CommonError, 11, exc.Message, exc.ToString(), HttpContext.Current.Request.UserHostAddress, Request.RawUrl, true, GetPortalID, GetUsername); SageFrameConfig pagebase = new SageFrameConfig(); if (pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseCustomErrorMessages)) { ShowMessage(SageMessageTitle.Exception.ToString(), exc.Message, exc.ToString(), SageMessageType.Error); } }
public bool LogWCFException(Exception exc) { string strIPaddress = string.Empty; string strPageUrl = string.Empty; if (HttpContext.Current != null && HttpContext.Current.Request != null && HttpContext.Current.Request.UserHostAddress != string.Empty) { strIPaddress = HttpContext.Current.Request.UserHostAddress; } if (HttpContext.Current != null && HttpContext.Current.Request != null && HttpContext.Current.Request.RawUrl != string.Empty) { strPageUrl = HttpContext.Current.Request.RawUrl; } ErrorLogDataContext db = new ErrorLogDataContext(SystemSetting.SageFrameConnectionString); System.Nullable<int> inID = 0; SageFrameConfig sfConfig = new SageFrameConfig(); db.sp_LogInsert(ref inID, (int)SageFrameEnums.ErrorType.WCF, 11, exc.Message, exc.ToString(), strIPaddress, strPageUrl, true, sfConfig.GetPortalID, sfConfig.GetUsername); return sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseCustomErrorMessages); }
public bool LogWCFException(Exception exc) { string strIPaddress = string.Empty; string strPageUrl = string.Empty; if (HttpContext.Current != null && HttpContext.Current.Request != null && HttpContext.Current.Request.UserHostAddress != string.Empty) { strIPaddress = HttpContext.Current.Request.UserHostAddress; } if (HttpContext.Current != null && HttpContext.Current.Request != null && HttpContext.Current.Request.RawUrl != string.Empty) { strPageUrl = HttpContext.Current.Request.RawUrl; } ErrorLogDataContext db = new ErrorLogDataContext(SystemSetting.SageFrameConnectionString); System.Nullable <int> inID = 0; SageFrameConfig sfConfig = new SageFrameConfig(); db.sp_LogInsert(ref inID, (int)SageFrameEnums.ErrorType.WCF, 11, exc.Message, exc.ToString(), strIPaddress, strPageUrl, true, sfConfig.GetPortalID, sfConfig.GetUsername); return(sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseCustomErrorMessages)); }