Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Application level exception handling
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00833443
Message ID:
00833486
Vues:
26
>You can have a per page error handler by registering a callback function on the pages Error event, or you can have an app wide handler by registering a callback on the HTTPApplications Error event (I assume you would set this one in the global asa)

Hi Bill.

By "registering a callback", I assume you mean specifying a handler for the Error event. If that's the case, then I've tried that and I'm doing something wrong. I added the following line to the constructor for the Global class in the Global.ASAX file:
public Global()
{
	InitializeComponent();
	this.Error += new System.EventHandler(this.Application_Error);
}
I then put some code to handle and log the exception into the Application_Error() method, but any error that occurs outside of a TRY...CATCH block is still being "unhandled", and the code in my Application_Error method is never being called.

Any idea what I'm missing here?

Thanks.
>>-Steve->>

Steve Sawyer
Geeks and Gurus, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform