Resolving named registration using Unity 2 in DefaultControllerFactory
问题 I have an issue with resolving named registrations of registered types in Unity 2 using ASP.NET MVC 3 with DI set in DefaultControllerFactory. In one assembly I have defined Unity container with registration types and named registrations public class VisUnityContainer : UnityContainer { public IUnityContainer RegisterVisComponents() { // register types this .RegisterType<ICompanyService, CompanyService>() .RegisterType<ICompanyService, TestCompanyService>( "2" ); } } and in my MVC project I