PRISM: Load by MEF new version of the same DLL.

May 6, 2013 at 4:17 PM

I am using PRISM with MEF. I have a problem which I think I am not able to solve with MEF, but I am not sure.

What I would like to achieve is to load by MEF the new updated version of given module. I am loading a module "A" in runtime by adding new DirectoryCatalog to the AggregateCatalog.Catalogs collection in my class which inherits from MefBootstrapper. And now I would like to load the new version of module "A", i.e. the DLL name is the same, module class name is the same, just different code inside.

When I am adding new DirectoryCatalog which holds the new version of DLL with module "A" then I get exception:
Activation error occured while trying to get instance of type RegionAdapterMappings, key ""
Is this what I would like to achieve possible with MEF and PRISM? Thank you for help.