![]() |
| |||||||
| Registrarse | Preguntas Frecuentes | Lista de Foreros | Calendario | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
![]() |
| | LinkBack | Herramientas | Desplegado |
| |||
| Hola, es posible utilizar el evento .UnhandledException en ASP.NET 2.0 ?? tengo algo asÃ***: protected override void OnInit(EventArgs e) { base.OnInit(e); PantallaControlIULogging.TrazarDebug("Principal. OnInit."); PantallaControlIULogging.TrazarWarning("Principal. CurrentDomain_UnhandledException. "); AppDomain.CurrentDomain.UnhandledException -= new UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException); } y también asÃ***: protected void Page_Load(object sender, EventArgs e) { PantallaControlIULogging.TrazarWarning("Principal. CurrentDomain_UnhandledException. "); AppDomain.CurrentDomain.UnhandledException -= new UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_Unhan dledException); .... Pero no consigo que se lance el evento cuando fuerzo un error: /// <summary>Refrescar datos</summary> protected void b2click(object sender, EventArgs e) { // Forzar error throw new Excepciones.BloqueoTareaExcepcion("ERROR BloqueoTareaExcepcion!!!"); Por la arquitectura de la aplicación no puedo acceder a global.asax y utilizar HttpApplication_Error. Alguna idea ? Gracias de antemano. -- http://www.alhambra-eidos.es/web2005/index.html www.kiquenet.net http://www.setbb.com/putainformatica...opic.php?p=843 www.trabajobasura.com/solusoft |
| | ||||
| ||||
| |
![]() |
| Herramientas | |
| Desplegado | |
| |
Temas Similares | ||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal) NO FUNCIONA!!! | El Cote | Newsgroup microsoft.public.es.csharp | 0 | 14-08-2008 21:39:46 |
| AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal) NO FUNCIONA!!! | El Cote | Newsgroup microsoft.public.es.dotnet.vb | 0 | 14-08-2008 21:39:46 |