I have a modular application, which loads some modules at runtime. I am using Prism v2 w/ Silverlight 3. I have verified that the modules load OK.
Now, if a module is missing from the server, Prism throws the ModuleTypeLoadingException. I tried catching the exception at several points:
catch (Exception ee)
Debug.WriteLine("Loading module failed.");
However, I can't catch the exception in my code (it eventually gets caught in Application_UnhandledException but that's too high up the chain for me and not ideal).
Is there a recommended approach for catching exceptions originating in the Prism assemblies?