This project has moved and is read-only. For the latest updates, please go here.

Unhandled exceptions in domain

May 14, 2012 at 3:53 PM



How should I catch all unhandled excepions in Excel Add-in that us based on NetOffice? the AppDomain.UnhandledExcepion event is never fired.


Please, help


May 15, 2012 at 10:19 PM

hey alex,

i do some test and its true, the UnhandledException Event was never called in addin solutions.
i need few days to clearify the situation and checkout what can i do to fix this issue.


May 18, 2012 at 1:43 AM

okay, the problem is by design. the CLR AppDomain Exception Handling doesnt works with unmanaged threads. i create a new VS Wizard at the moment with COM Shimming support. Shimming make it possible to handle this problem. I need ~1 month for this feature(not easy). If you need a solution right now then use the COM Shim Wizard from Microsoft. an example is available in the download section. if you have questions about the Shim wizard an NetOffice then please contact me again :-)