Geeks With Blogs

@azamsharp
  • azamsharp The WWDC app says that there are new videos but there is nothing under videos!!! about 435 days ago
  • azamsharp Can I post my opinion on iOS 7 Beta or is it under NDA or something? about 435 days ago
  • azamsharp iOS 7 BETA installed successfully! about 435 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 435 days ago
  • azamsharp The missing of button borders in Xcode 5 makes it hard to determine the clickable area. about 435 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 435 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 435 days ago
  • azamsharp Maybe it is just me but the new iOS 7 UI looks like Windows Phone 8 UI! #maybeIamCrazy about 435 days ago
  • azamsharp Anyone using H20 network upgraded to iOS 7 BETA Keep me updated if you face any problems. about 435 days ago
  • azamsharp @merowing_ You already downloaded it! I cannot even load the developer's website! :( about 436 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 -->

<healthMonitoring>

<providers>

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

maxEventDetailsLength="1073741823"

buffer="false" bufferMode="Notification"

type="System.Web.Management.SqlWebEventProvider,

System.Web,Version=2.0.0.0,Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a" />

</providers>

<rules>

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

</rules>

</healthMonitoring>

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
http://www.vikramlakhotia.com/Post.aspx?postID=11
Thanks
Left by vikram on Sep 10, 2006 11:06 PM

Your comment:
 (will show your gravatar)
 


Copyright © Mohammad Azam | Powered by: GeeksWithBlogs.net | Join free