Search code examples
c#.netexceptionappdomainmaf

C#, MAF, Unhandled Exception Management in separate AppDomain


Okay, so I have a MAF application which loads up each addin inside of a separate appdomain. This is working fantastic for what I need as it allows me to dynamically unload and reload my addins at runtime.

The problem is, I need to be able to take an unhandled exception in the child appdomain, catch it, and then let that appdomain fail gracefully without taking down the parent appdomain

How do I go about doing this? It seems like a trivial task and one of the main benefits of using isolated appdomains...


Solution

  • I think my answer to this similar question should help you:

    Application crash when anoter domain throws exception

    Let me know if you need any more information.