Exception Handling Block - new handlingInstanceID for each exception rethrow

Topics: Exception Handling Application Block
Sep 26, 2008 at 9:38 PM
When you use a policy that wraps an exception in a new one with ThrowNewException, a new handlingInstanceID is created.

If you have a multi-layer app, with wrap and rethrow at each layer boundary as is suggested, you will get a chain of multiple handlingInstanceIDs.

Assuming the last one is displayed to the user, and they use that for support purposes, the support tech then needs to drill down through logged exceptions with different IDs.

Is there any way for the same wrap and throw behaviour to keep/reuse the same handlingInstanceID?

Or do people generally configure things differently than this?