EventTopicException not handled by HandleException in ShellApplication

Topics: Exception Handling Application Block
Mar 12, 2012 at 4:06 PM

In my ShellApplication, any unhandled exception in the application is handled by the HandleException method - this allows the app to log the exception and do any clean up.

If the exception is fired in the subscription to a global event, then the exception is wrapped up by the EventBroker and fired as one EventTopicException. This exception is not caught by the overall HandleException method in ShellApplication, event though I have registered to receive all AppDomain.CurrentDomain.UnhandledExceptions.

Does anyone know of a way around this?

Mar 12, 2012 at 5:16 PM

Hi,

It sounds like you may be using Prism.  Perhaps the Prism forum can help since it sounds like it may be related to the design and implementation of Prism (e.g. EventBroker).

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com