Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes.

ASP.NET 2.0 introduced a new feature which is called Health Monitoring. Health Monitoring allows you to have the information about your website. This information can contain everything including startup and stopping of the application, errors, events etc. You can easily enable the Health Monitoring services by doing small settings in web.config file.

Simply run the aspnet_regsql.exe from the Visual Studio.NET 2005 command prompt. This will guide to enable the different services on your database. When the wizard is finished you will see the table aspnet_WebEvent_Event created in your targeted database.

The next task is to do the configuration in web.config file.

<!-- Health Monitoring System -->



<add name="MySqlEventProvider" connectionStringName="ConnectionString"


buffer="false" bufferMode="Notification"



PublicKeyToken=b03f5f7f11d50a3a" />



<add eventName="All Events" name="LogAllEvents" provider="MySqlEventProvider"/>



And this is all you need. Now when you run your application all the events are noted in the aspnet_WebEvents_Event table of your database.

Posted on Sunday, September 10, 2006 9:06 PM | Back to top

Comments on this post: Health Monitoring With ASP.NET 2.0

# re: Health Monitoring With ASP.NET 2.0
Requesting Gravatar...
I have blogged about how to use Health Monitoring API to send Email in case of Application Event here
Left by vikram on Sep 10, 2006 11:06 PM

Your comment:
 (will show your gravatar)

Copyright © Mohammad Azam | Powered by: