views:

177

answers:

2

Some exceptions (web service calls) of a Web Application are not handled, because I want to show them on a Custom Error Page, passing from the Application_Exception method. Porting my Web Application to ASP.Net 2.0, these events started to appear in the Event Viewer (Web Events, new feature of ASP.Net 2.0).

Is there a way to disable ASP.Net 2.0 Web Events, or to avoid the automatic logging in the Event Viewer?

+2  A: 

I think you can disable HealtMonitoring in the web.config inside the framework folder, or change the rules to log some exceptions

Oscar Cabrero
+1  A: 

You probably want to configure health monitoring instead of disabling it. For the exceptions you don't want displayed on the custom error page, you'll want the detailed information that is logged by the default health monitoring configuration.

John Saunders