Hello,
I was under the impression that an exception inside the appdomain doesn't cross the appDomain. But it is not happening for me.
Here is my setup:
My default app domain contains an EXE (container).
The container creates a new appDomain (newAD).
The container adds an event handler for newAD.UnhandledException
the container loads an assembly into the newAD.
the container invokes MyClass o = newAd.CreateInstanceAndUnwrap(...)
the container invokes a method on the instance o.PleaseThrowAnException();
the method throws an exception and kills the container appdomain.
I was expecting the exception to get handeled by the event handler for newAd.UnhandledException.
Could someone help me figure this out
Thanks