Currently, in all of our environments we have healthmonitoring turned on to alert us when ever a user has caused an error:
<healthMonitoring enabled="true">
<providers>
<add name="MailWebEventProvider" type="System.Web.Management.SimpleMailWebEventProvider" to="[email protected]" from="[email protected]" buffer="false" subjectPrefix="prefix: "/>
</providers>
<rules>
<add name="All errors from my site" eventName="All Errors" provider="MailWebEventProvider" profile="Critical"/>
</rules>
</healthMonitoring>
We recently started implementing more AJAX functionality, and I just realized any error thrown during a partial page update does not trigger the healthmonitor to send the email. The user gets the default alert() message box; however, nothing on the server side.
Does anyone know how to turn this on? I'm not sure what setting I'm missing
Edit
I see that the ScriptManager control has an event called "AsyncPostBackError". If I hook onto this and do "throw e.Exception", it will fire off the health monitor; however, it erases the error the user sees. Does anyone know how to fire the health monitor without throwing an error like this?