After ading a new module to a prism project I keep getting the error from the title. When creating a module I did the following:
- Added a new WPF User Control Library
Added a class that inherits from IModule like this:
[ModuleExport(typeof(ClassA))] public class ClassA: IModule { public void Initialize() { } }
Added the necessary references: Microsoft.Practices.Prism, and MefExtenstions
- Added the proper module declaration in app.config
Am I missing any steps?
I have other modules that look almost the same as the new one (appart from the fact that they have views and viewmodels) and they are working perfectly fine.
<module assemblyFile="Company.Project.APIModule.dll" moduleType="Company.Project.APIModule.APIModule, Company.Project.APIModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" moduleName="APIModule" startupLoaded="true" />
– mobearette