Resolving IRegionManager Generates ResolutionFailedException

Topics: Prism v4 - WPF 4
Jun 19, 2012 at 10:32 AM


Resolution of the dependency failed, type = "Microsoft.Practices.Prism.Regions.IRegionManager", name = "(none)".Exception occurred while: while resolving.Exception is: InvalidOperationException - The current type, Microsoft.Practices.Prism.Regions.IRegionManager, is an interface and cannot be constructed. Are you missing a type mapping?-----------------------------------------------At the time of the exception, the container was:
  Resolving Microsoft.Practices.Prism.Regions.IRegionManager,(none)



at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)   

at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, String name, IEnumerable`1 resolverOverrides)   at Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides)   

at Microsoft.Practices.Unity.UnityContainerExtensions.Resolve[T](IUnityContainer container, ResolverOverride[] overrides)   

at Bootstrapper.CreateShell()

Jun 19, 2012 at 2:06 PM


It would be helpful if you could provide us with a little more information about this scenario or at least some code, specially of your application´s Bootstrapper, or a repro sample application that portrays this behavior so we can help you troubleshoot this problem.

As far as I know the Unity container throws exceptions like this, if you have not done a Register in the container to map that interface to the corresponding type. Although, as you might find in the following section of the Prism documentation this is done by default by the ConfigureContainer method in the UnityBootstrapper.


Agustin Adami

Jun 20, 2012 at 2:37 PM

Dear aadami, 

thanks for your reply, it works by override UnityBootstrapper.ConfigureContainer.