I am working on a CM solution based on the Billy Hollis Style Demo in the CM Hello Screens Tutorial.
Everything was working fine, but I decided to reorganize so that the contents of each folder (Customers - Orders - Settings) would reside in its own project. rather than a single project solution, as in the turotial.
I have no errors at design time but at run time I am getting the following error:
System.ComponentModel.Composition.CompositionException was unhandled by user code
Message=The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
1) Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Single stepping in the bootstrapper, I can see in Configure (container.Compose(Batch) that all of the ViewModels from each of the projects are listed in the container, proving that my code
in the bootstrappers Select Assemblies and
Configure seem to be working OK.
Since the only changes I made to code which was previously working OK, was the minimum changes needed to operate in seperate contents of folders into projects, the cause must be simple. Yet I cant seem to
I'm not sure if this is a MEF or a CM issue.
Could anyone suggest where to look? Traditional debugging methods just dont provide access to the cause for this error.