protected void Page_Load(object sender, EventArgs e) { ctr_Prestador.ClickCambioPrestador += new Controls_Prestador.Click_CambioPrestador(ClickCambioPrestador); if (!IsPostBack) { try { AplicarSeguridad(); log.Debug("Voy a buscar los cierres"); TraeCierres(); if (VariableSession.esSoloArgenta) { log.Debug("Page_Load - Antes de Cargar VariableSession.UnPrestador"); VariableSession.UnPrestador = ANSES.Microinformatica.DAT.Negocio.Prestador.TraerPrestador(0, long.Parse(ConfigurationManager.AppSettings["IDPrestadorANSES"].ToString())).First(); log.Debug("Page_Load - Después de Cargar VariableSession.UnPrestador"); } log.Debug("Page_Load - Antes de Cargar CargarGrupos"); CargarGrupos(DirectorManager.DirGroups.ToArray()); log.Debug("Page_Load - Después de Cargar CargarGrupos"); log.Debug("Page_Load - Antes de Cargar CargarMenu"); Menu1.CargarMenu(ObtenerMenu()); log.Debug("Page_Load - Después de Cargar CargarMenu"); } catch (ThreadAbortException) { } catch (UsuarioTokenException UTEx) { log.ErrorFormat(UTEx.Message); Response.Redirect("~/" + ConfigurationManager.AppSettings["TimeoutURL"].ToString()); Response.End(); } catch (Exception ex) { log.Error(string.Format("{0} - Error:{1}->{2}", System.Reflection.MethodBase.GetCurrentMethod().Name, ex.Source, ex.Message)); Response.Redirect("~/Paginas/Varios/Error.aspx"); Response.End(); } } }