PetCenter.Referencias.Presentacion.Web/Global.asax.cs
/// <summary>
/// Genera de errores que pasan por Application_Error
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Genera de errores que pasan por Application_Error
Genera de errores que pasan por Application_Error
protected void Application_Error(object sender, EventArgs e)
        {
            if (Server != null)
            {
                var controlador = "Desconocido";
                var accion = "Desconocido";
                try
                {
                    var path = Request.FilePath.Split('/');
                    controlador = path[1];
                    accion = path[2];
                }
                catch (Exception) { }
                Server.GetLastError().CapturarError(controlador, accion);
            }
        }
protected void Application_Error ( object sender , EventArgs e ) { if ( Server != null ) { var controlador = " " ; var accion = " " ; try { var path = Request . FilePath . Split ( ' ' ) ; controlador = path [ 1 ] ; accion = path [ 2 ] ; } catch ( Exception ) { } Server . GetLastError ( ) . CapturarError ( controlador , accion ) ; } }
Genera de errores que pasan por Application_Error
Genera de errores que pasan por Application_Error
sender
object
None
e
EventArgs
None