void Application_Error(object sender, EventArgs e) { // Code that runs when an unhandled error occurs Cls_General FG = new Cls_General(); Exception Ex = Server.GetLastError(); FG.Controlador_Error(Ex, Response); }