Jwalin Khatri

healthMonitoring – Send an email when an Unhandler error occured

Posted by: jwalin on: March 6, 2008

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.combodyHeader=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 Response to "healthMonitoring – Send an email when an Unhandler error occured"

very nice web site. My English is not so good, so I do not understandt it well, but it seems very good. Thanks

Leave a Reply

Blog Stats

  • 10,073 hits

  • Mayur: Thank you jwalin Khatri for this posting.. i solve my problm though this post...
  • Trigunner: This is a helpful post. I guess I would have had a hard time figuring this out if not for this post.
  • jwalin: Thankx