System.Web
2.0.0.0
System.Object
ASP.NET health monitoring allows production and operations staff to manage deployed Web applications. The namespace contains the health-event types responsible for packaging application health-status data and the provider types responsible for processing this data. It also contains supporting types that help during the management of health events.
Instances of the class contain information that is obtained using any of the types derived from the type.
Your application needs the appropriate permissions to access protected information provided by this type.
The following is an excerpt of a configuration file you could use to enable ASP.NET to log error events that contain application information.
<healthMonitoring
enabled="true" heartBeatInterval="0">
<rules>
<add
name="All Errors Default"
eventName="All Errors"
provider="EventLogProvider"
profile="Default"
minInterval="00:01:00" />
</rules>
</healthMonitoring>
In most cases you will be able to use the ASP.NET health-monitoring types as implemented, and you will control the health-monitoring system by specifying values in the healthMonitoring configuration section. You can also derive from the health-monitoring types to create your own custom events and providers. For an example of creating a custom event class, see the example provided in this topic.
Provides information associated with health events.
Property
System.String
To be added.
To be added.
Gets the current application domain name.
2.0.0.0
Property
System.String
To be added.
This property requires appropriate permissions to be accessed. Refer to the Permissions section.
Gets the application physical path.
2.0.0.0
Property
System.String
To be added.
To be added.
Gets the application logical path.
2.0.0.0
Method
System.Void
The method provides a uniform format for event information, which is useful if the event data must be logged and later presented to the user. It is called internally when the provider invokes one of the methods.
When formatting your custom event information for display, override the method rather than the method. This will avoid overwriting or tampering with sensitive system information.
Formats the application information.
The that contains the tab and indentation settings used to format the Web health event information.
2.0.0.0
Property
System.String
To be added.
To be added.
Gets the application machine name.
2.0.0.0
Method
System.String
The method formats event information by calling the method.
When formatting your custom event information for display, override the method rather than this method. This will avoid overwriting or tampering with sensitive system information.
Formats event information for display purposes.
The event information.
2.0.0.0
Property
System.String
To be added.
This property requires appropriate permissions to be accessed. Refer to the Permissions section.
Gets the application trust level.
2.0.0.0