RE: Error handling standards?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Suriya Narayanan [MSFT] (suriyan_at_NoSpam.microsoft.com)
Date: 07/07/04


Date: Wed, 07 Jul 2004 22:41:02 GMT

Only thing I would add is that the message can be very large - so if you
are adding the message that caused the exception to the eventlog, sooner or
later, you might overflow the buffers for the event log. So, you might
want to log the message id (the GUID) instead and have the message stored
in an external store. Or if you have tracking on with message bodies, you
can use locate the message using the message guid.

This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team
--------------------
>>Thread-Topic: Error handling standards?
>>thread-index: AcRj/AlSJrrTRommScacls2ijlfLvg==
>>X-WBNR-Posting-Host: 192.71.76.2
>>From: "=?Utf-8?B?QWxhbiBTbWl0aA==?=" <AlanSmith@discussions.microsoft.com>
>>References: <07299D97-7E6E-4868-A692-CDA9C2EE1EA6@microsoft.com>
>>Subject: RE: Error handling standards?
>>Date: Wed, 7 Jul 2004 01:26:01 -0700
>>Lines: 22
>>Message-ID: <ABB8C2BD-051E-4C35-8A1B-4064A5570221@microsoft.com>
>>MIME-Version: 1.0
>>Content-Type: text/plain;
>> charset="Utf-8"
>>Content-Transfer-Encoding: 7bit
>>X-Newsreader: Microsoft CDO for Windows 2000
>>Content-Class: urn:content-classes:message
>>Importance: normal
>>Priority: normal
>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>>Newsgroups: microsoft.public.biztalk.server
>>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
>>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
>>Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.server:9810
>>X-Tomcat-NG: microsoft.public.biztalk.server
>>
>>Hi John,
>>
>>I'm working on the same problem here. A good starting point would be to
>>check out the "Dealing with Exceptions In BizTalk Orchestrations" article
>>on "Jan Tielens' Bloggings".
>>
>>http://weblogs.asp.net/jan/archive/2004/03/22/93981.aspx
>>
>>Cheers,
>>
>>Alan
>>
>>
>>"John" wrote:
>>
>>> Hi,
>>>
>>> I'm trying to use a standard approach to error handling in our
orchestrations. Basically, when an error occurs I want to log the
exception and the message that was sent. I can't seem to access the
exception in the exception block, i.e I want to log the exception message
to the event log.
>>>
>>> Any ideas?, or does anyone got a standard error approach document.
>>> --
>>> John
>>



Relevant Pages

  • Re: Event Log Trust Level?
    ... What I do in this case is install the event log as part of an installer ... package and then just use write to the event log from the app. ... > but it comes back with this exception: ... > source, String logName, String machineName, Boolean ...
    (microsoft.public.dotnet.security)
  • Re: Write to IIS/Event Log File ?
    ... >with an exception that might arise, ... >either in the web service, ... >Writting to the event log threw me Security Exceptions, ... NET Framework Class Library: ApplicationActivationAttribute ...
    (microsoft.public.dotnet.general)
  • Re: Cannot open log for source {0}. You may not have write access. (Access right wanish after a whil
    ... Are the event log ACLs being changed from their initial states? ... could it be that the user context is changing? ... WindowsIdentity.GetCurrent return when the exception is thrown? ... > Our server is Win 2003 with AD and it's domain controller of it's own ...
    (microsoft.public.dotnet.security)
  • Re: Help! Error: aspnet_wp.exe (PID: xxxx) stopped unexpectedly
    ... there was no entry in event log related to recycling. ... The error was due an exception generated by the HashTable.Addmethod(in my ... The worker process was indeed bringing up the debugger selection panel(with ... Have you found any recycle record in eventlog?... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Exception manegement application block cant write to Windows server 2003
    ... Impersonation and Event log" question here and decided to ask my question ... We registered the Exception Management Application Block ... System.Diagnostics.EventLog.WriteEntry(String source, String message, ... EventLogEntryType type, Int32 eventID, Int16 category, ByterawData) +68 ...
    (microsoft.public.dotnet.framework.aspnet.security)