I've recently upgraded the Sitecore 8.2 solution to Sitecore 9.1 update 1 which works fine.
But I also have to convert the existing site to SXA site. So, I started by adding the fresh SXA site but when I looked into the "MetaData" partial design in the experience editor, it was throwing the dependency injection error - "Could not create Metadata controller"
When looked deeper, I've realized the existing project uses "Castle Windsor" as dependency injection and does below
<pipelines>
<initialize>
<processor patch:instead="*[@type='Sitecore.Mvc.Pipelines.Loader.InitializeControllerFactory, Sitecore.Mvc']" type="Client.Digital.Foundation.DependencyInjection.Processor.InitialiseIocControllerFactory, Client.Digital.Foundation.DependencyInjection" />
</initialize>
</pipelines>
which was replacing the - InitializeControllerFactory.
I've tried patch:after or before so that we can have both, but which ever pipeline comes last, that's dependency injection works fine.
I've also tried to Register the SXA dependencies in the castle windsor but no luck
Have someone faced this type of issue before?
I think we can have more than one dependency injection framework. Thanks