We are hitting the following error in some of our environments, seemingly after the app pool recycles.
An instance of IControllerFactory was found in the resolver as well as a custom registered provider in ControllerBuilder.GetControllerFactory. Please set only one or the other.
We are not using the ControllerBuilder to register our controller factory, only the IDependencyResolver as pointed out in the this blog
We are using Castle Windsor (seemingly unrelated), as our container, and in the Application_Start of the Global.asax, first registering all of our dependencies and calling the following to register the IDepencencyResolver.
DependencyResolver.SetResolver(new WindsorDependencyResolver(IoC));
What could be causing this exception? Any help would be appreciated.