Closed jbe2277 closed 4 years ago
Please review your MEF assembly registration. The MEF registered services of WAF are moved from WpfApplicationFramework.dll
to System.Waf.Wpf.dll
.
If you have the following registration then you need a minor change:
catalog.Catalogs.Add(new AssemblyCatalog(typeof(Model).Assembly));
Just replace the type Model with ViewModel so that the correct assembly is registered:
catalog.Catalogs.Add(new AssemblyCatalog(typeof(ViewModel).Assembly));
Background info: Model
is now part of the System.Waf.Core
assembly. But the MEF registered services are in System.Waf.Wpf
. ViewModel
is a type of the System.Waf.Wpf
assembly.
After updating WAF from 3.2 to 4.1 a CompositionException occurs when I run my application.