Tech Tutorials Database
GeekArticles Database SQL Server
 

Health Monitoring in ASP.NET 2.0: Raising Custom Events

 
Author: aspnet.4guysfromrolla.com
Category: SQL Server
Comments (0)

A Multipart Series on ASP.NET 2.0's Health Monitoring System
The Health Monitoring system in ASP.NET 2.0 is designed to monitor the health of a running ASP.NET application in a production environment. This article is one of an ongoing series on the Health Monitoring system.

  • Health Monitoring Basics - explores the concepts and advantages of the Health Monitoring system and looks at logging events to a Microsoft SQL Server database.
  • Notifications via Email - looks at security-related events and shows how to alert an administrator to failed authentication attempts by "logging" events to email.
  • Raising Custom Events - learn how to create and raise custom Health Monitoring events.
  • (Subscribe to this Article Series! )

    As discussed in previous articles in this article series, ASP.NET 2.0's Health Monitoring system is designed to monitor the health of a running ASP.NET application in a production environment by recording event information to a specified log source. The Health Monitoring system includes a plethora of pre-defined events and the ASP.NET runtime will automatically raise certain events during the course of an application's lifetime. However, there may be times when we need to raise these events programmatically through our own code. Moreover, we can create our own custom events for scenarios not already accounted for by the Health Monitoring system.

    In this article we will examine how to create a custom event and then how to programmatically raise it. As with other Health Monitoring events, when the event has been raised the Health Monitoring system will consult the configuration information in Web.config to determine what log source(s) to record the event's details. For this article we will create a custom event and write code to record log in attempts on a locked out user account. Read on to learn more!
    Read More >

    Read More...




    Sponsored Links




    Read Next: Script Task Breakpoints in Katmai



     

     

    Comments



    Post Your Comment:

    Your Name:*
    e-mail ID:(required for notification)*
    Image Verification: 
     
     Subscribe