Hi Kev,
Perhaps you don't have permission on the log file and the application is
bombing out before the sending mail portion of the program is sent.
--
Regards
Lee Alexander
www.feedghost.com
An RSS Reader for Vista & XP
Synchronize, search, tag and share.
"Mantorok" <(E-Mail Removed)> wrote in message
news:f0n7sr$fd$(E-Mail Removed)...
> Hi all
>
> I have a console application that runs every night via a scheduled task,
> there is a try-catch block in my Main class, whenever an error is caught
> it is written to a log file and then emailed to several people. The
> application is run using a domain service account, if the program is
> successful it emails this result fine.
>
> The problem is, the catch doesn't seem to perform correctly if the program
> fails, all I end up with is an entry in the event-log with almost
> meaningless error details.
>
> My only thought was that maybe these errors are occurring in my
> multi-threaded calls (there are a few).
>
> Is there any reason why the catch would fail? I'm running out of ideas.
>
> Thanks
> Kev
>