Production Alarms

liunx

Guest
hello all!

I've written some windows services that basically poll the DB and send and receive .txt files via an FTP service. We also have a web front-end.

At this point we're ready to start putting in some self-monitoring pieces. I'd like to know if there's any built-in functionality w/ .NET that allows emails/notifications to be sent out when files fail to process and/or fatal error messages are detected are log files.

Thanks,

JayThe following namespace contains all the objects required to send emails in ASP.NET.

using System.Web.Mail;

I think all you will need to do is to add the code to send the email in the block that catches the exception that is generated when there is problem processing a file. You could then add the information about the exception to the body of the email message.

If you need any more details just let me know.

:)
 
Back
Top