I attempted it again and came up with the same results. Everything works if i do not share containers but when I share containers it does not work. It always fails when trying to find the first module.
I have to share containers so that is the only option. I tried several variations in the bootstrapper and they all failed.
I have looked at all the examples(i think) and there does not seem to be a mefedMVVM silverlight on demand module example. There is an example with the Cinch framework for on demand modules but it is for WPF and uses DirectoryCatalog which is not available
in silverlight and wouldn't work for what I would think are obvious reasons.
I have looked into the Prism bootstrapper code and it is pretty simplistic when creating the container. I think error has to do with the MefedMVVM export provider either not being able to find the Module Exports or not being able to find exports that are
added after the start.....
Any direction or help would be appreciated.
Something worth nothing. Everything worked perfectly until we switched to on demand modules. Our original silverlight solution did not use on demand modules and mefedMVVM integrated perfectly and the container was shared.
*****************Error Message I receive when sharing*****************
Unable to locate the module with type 'DashboardModule, Dashboard, Version=188.8.131.52' among the exported modules. Make sure the module name in the module catalog matches that specified on ModuleExportAttribute for the module type.
Here is how the ModuleCatalog is being created.
protected override IModuleCatalog CreateModuleCatalog()
// Module B, D, E and F are defined in XAML.
.CreateFromXaml(new Uri("/;component/ModulesCatalog.xaml", UriKind.Relative));
Here is the module class it can't find.
[ModuleExport(ModuleNames.Dashboard, typeof(DashboardModule), InitializationMode = InitializationMode.OnDemand)]
public class DashboardModule : IModule
#region IModule Members
public void Initialize()
<!-- Needed at Startup -->
ModuleType="DashboardModule, Dashboard, Version=184.108.40.206" />