Error loading multiple modules

Topics: Prism v4 - WPF 4
Jun 16, 2011 at 5:10 PM
Edited Jun 16, 2011 at 5:49 PM

I have Prism 4 - WPF 4. application that loads two modules using MefBootStrapper. The shell has two regions and I want the modules to load into the two regions. As in Module1 into Region1 and Module2 into Region2. This application is based off the Modularity Quickstart sample application, where the ModuleTracker tracks the progress of the application.

The application loads fine if I load just one module. Either of the modules work fine. However I get compostion errors when I try to load both the modules.

I tried mefx to debug the problem but it does not come up with anything useful.

Any ideas?

Jun 16, 2011 at 9:06 PM


Take into account that you load views into regions not modules.

On the other hand, you might find handy the following Prism’s documentation chapters:

Additionally you can follow the Modularity QuickStart for WPF Walkthrough in order to perform the steps required to build the application.

Also, it could be helpful if you could provide us with your repro sample (for example, uploading to SkyDrive) of your solution, so that we can help you find out the cause of the unexpected behavior you're experiencing.

I hope you find this information useful.


Miguel Bronzovic


Jun 17, 2011 at 6:59 PM

Unfortunately I cannot use SkyDrive from work. Its restricted. I think I will just have to deconstruct the project to see what the problem is. The design is based off the Modularity Quickstart application.

Any good debugging tools besides mefx? That anyone can suggest.