healthMonitoring - Send an email when an Unhandler error occured
In web.config file put the following code to send an email
<healthMonitoring>
<providers>
<add name=“ApplicationMailEventProvider“ type=“System.Web.Management.SimpleMailWebEventProvider,System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a“ from=noreply@company.com to=jkhatri@company.com” bodyHeader=“Error raised to ApplicationCriticalMailEventProvider“ subjectPrefix=“ERROR:“ buffer=“true“ bufferMode=“Critical Notification“ maxEventLength=“4096“ maxMessagesPerNotification=“1“/> </providers><rules>
<add name=“Application Request Processing Errors“ eventName=“Request Processing Errors“ provider=“ApplicationMailEventProvider“ profile=“Default“/><add name=“Application Infrastructure Errors“ eventName=“Infrastructure Errors“ provider=“ApplicationMailEventProvider“ profile=“Critical“/>
</rules></healthMonitoring>
</system.web>
1 Comment »
Leave a comment
About
This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.
-
Archives
- July 2008 (3)
- June 2008 (1)
- May 2008 (6)
- April 2008 (4)
- March 2008 (3)
- February 2008 (1)
- December 2007 (7)
-
Categories
-
RSS
Entries RSS
Comments RSS
very nice web site. My English is not so good, so I do not understandt it well, but it seems very good. Thanks