Newsgrupos.com  

Retroceder   Newsgrupos.com > Forum > Newsgroup microsoft.public.es.* 1 Foro > Newsgroup microsoft.public.es.csharp
Registrarse Preguntas Frecuentes Lista de Foreros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos


Respuesta
 
LinkBack Herramientas Desplegado
  #1 (permalink)  
Antiguo 13-11-2007, 15:44:02
Alhambra Eidos Kiquenet
 
Mensajes: n/a
Predeterminado AppDomain.CurrentDomain.UnhandledException.

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

Responder Con Cita
Alt Today
Advertising
Google Adsense
 
This advertising will not be shown
in this way to registered members.
Register your free account today
and become a member on
Newsgrupos.com
Standard Sponsored Links

Respuesta


Herramientas
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Trackbacks are habilitado
Pingbacks are habilitado
Refbacks are habilitado


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



La franja horaria es GMT. Ahora son las 11:14:52.



Powered by: vBulletin, Versión 3.6.8
Derechos de Autor ©2000 - 2010, Jelsoft Enterprises Ltd.

LinkBacks Enabled by vBSEO 3.1.0 © 2007, Crawlability, Inc.