This project is read-only.
1

Closed

Error when starting WPF.Prism example

description

When starting the Catel.Examples.WPF.Prism i got this error
...
Message=The type 'Catel.Examples.WPF.Prism.Models.IDepartmentRepository' is not registered, not even in an external container
...

Solution:
Change the order of DepartmentRepository and EmployeeRepository within the ConfigureContainer method in Bootstrapper.cs like this
    protected override void ConfigureContainer()
    {
        base.ConfigureContainer();

        RegisterTypeIfMissing(typeof(IModuleTracker), typeof(ModuleTracker), true);

        var serviceLocator = ServiceLocator.Instance;
        serviceLocator.RegisterExternalContainer(Container);

        serviceLocator.RegisterType<IDepartmentRepository, DepartmentRepository>();
        serviceLocator.RegisterType<IEmployeeRepository, EmployeeRepository>();
    }
Closed Sep 4, 2012 at 8:37 PM by GeertvanHorrik
Thanks for pointing this out. We have fixed the issue and updated all examples to the latest version of Catel.

comments