Release 1.0 - ...

<healthMonitoring> element

This element can be used to configure and enable health monitoring, such as capturing so-called ASP.NET 2.0 Application Lifetime events (e.g. application start/shutdown) and write them to the Event Log.

The machine-level web.config (in %systemdrive%\Windows\Microsoft.NET\Framework\%version%\CONFIG) already contains a large healtMonitoring section, which configures and initializes several rules and providers.

To capture Application Lifetime events for all sites, just add a rule to healtMonitoring\rules within the machine-level web.config.

To capture these events just for a particular site, add the section as shown in the example to the web.config of that particular site.

An Application Lifetime event (in this case an application shutdown) looks like this:

Event code: 1002 
Event message: Application is shutting down. Reason: Hosting environment is shutting down.
Event time: 4-1-2008 14:17:40
Event time (UTC): 4-1-2008 13:17:40
Event ID: 5b0a976f5c3f481ebd41bfaabfcda8a1
Event sequence: 2
Event occurrence: 1
Event detail code: 50002
Application information: 
Application domain: /LM/W3SVC/223085051/ROOT/CMS-1-128439164497271116
Trust level: Full
Application Virtual Path: /CMS
Application Path: D:\Sites\Test6\WWW\
Machine name: MACHINENAME


Process information:
Process ID: 4224
Process name: w3wp.exe
Account name: ACCOUNTNAME

Expand image Example

Expand image Attributes

Expand image Parent element

Expand image Child elements