Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: Share ViewModels

$
0
0
Hello Cherubini,

I'm change CreateModuleCatalog from CreateFromXaml to ConfigurationModuleCatalog this exception error, How to solved this problem, Thanks so much.

The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.

1) Module Page1Module was not found in the catalog.

Resulting in: An exception occurred while calling the 'OnImportsSatisfied' method on type 'Navigation.Shell'.

Resulting in: Cannot activate part 'Navigation.Shell'.
Element: Navigation.Shell --> Navigation.Shell --> AssemblyCatalog (Assembly="Navigation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")

Resulting in: Cannot get export 'Navigation.Shell (ContractName="Navigation.Shell")' from part 'Navigation.Shell'.
Element: Navigation.Shell (ContractName="Navigation.Shell") --> Navigation.Shell --> AssemblyCatalog (Assembly="Navigation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")
        protected override IModuleCatalog CreateModuleCatalog()
        {
            return new ConfigurationModuleCatalog();
        }
<?xml version="1.0"?>
<configuration>

    <configSections>
        <section name="modules" type="Microsoft.Practices.Prism.Modularity.ModulesConfigurationSection, Microsoft.Practices.Prism"/>
    </configSections>

    <modules>
        <module assemblyFile="Navigation.Modules.Page1.dll" moduleType="Navigation.Modules.Page1.Page1Module, Navigation.Modules.Page1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" startupLoaded="true" moduleName="Page1Module">
        </module>
        <module assemblyFile="Navigation.Modules.Page2.dll" moduleType="Navigation.Modules.Page2.Page2Module, Navigation.Modules.Page2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" moduleName="Page2Module">
        </module>
        <module assemblyFile="Navigation.Modules.Page3.dll" moduleType="Navigation.Modules.Page3.Page3Module, Navigation.Modules.Page3, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" moduleName="Page3Module">
        </module>
    </modules>

    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    </startup>
</configuration>

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>