Geeks With Blogs

  • azamsharp The WWDC app says that there are new videos but there is nothing under videos!!! about 656 days ago
  • azamsharp Can I post my opinion on iOS 7 Beta or is it under NDA or something? about 656 days ago
  • azamsharp iOS 7 BETA installed successfully! about 656 days ago
  • azamsharp iOS 7 BETA installed! Now restoring! I am on NET10 which uses AT&T network. Hopefully 3G will still work! Lets c.. about 656 days ago
  • azamsharp The missing of button borders in Xcode 5 makes it hard to determine the clickable area. about 656 days ago
  • azamsharp I might wait for iOS to be released before I can put it on my device! Don't want a bricked or unstable device! about 656 days ago
  • azamsharp Android has many features that no one uses, number of versions that no one upgrades to and thousands of apps that no one pays for. about 656 days ago
  • azamsharp Maybe it is just me but the new iOS 7 UI looks like Windows Phone 8 UI! #maybeIamCrazy about 656 days ago
  • azamsharp Anyone using H20 network upgraded to iOS 7 BETA Keep me updated if you face any problems. about 656 days ago
  • azamsharp @merowing_ You already downloaded it! I cannot even load the developer's website! :( about 657 days ago

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: | Join free