title: No component for supporting the service System.Web.Mvc.IControllerFactory was found
body: <p>I have an issue in Castle Windsor. Please help me!
  I'm using Castle Windsor 3.2.0.0, .Net 4.0 and Mvc 3.0.0.0</p>
  
  <p>Thank you so much!</p>
  
  <p>Issue: 
  No component for supporting the service Mvc IControllerFactory was found
  There is some code here.</p>
  
  <pre><code>public class WindsorDependencyResolver : IDependencyResolver
  {
     private readonly IWindsorContainer _container;
     public WindsorDependencyResolver(IWindsorContainer container)
     {
         this._container = container;
     }
  
     public object GetService(Type serviceType)
     {
         return _container.Resolve(serviceType);
     }
  
     public IEnumerable&lt;object&gt; GetServices(Type serviceType)
     {
         return _container.ResolveAll(serviceType).Cast&lt;object&gt;();
         //return _container.ResolveAll&lt;object&gt;(serviceType);
     }
  }
  
  //Castle Windsor register
  protected void Application_Start()
  {
  var container = new WindsorContainer();
  
  container.AddFacility&lt;TypedFactoryFacility&gt;()
      .Register(Component.For&lt;IServiceFactory&gt;().AsFactory().LifeStyle.Transient);
  
          //Do register the service/type to container
  container.Register(
    Types.FromThisAssembly()
    .BasedOn(typeof(Controller))
    .WithService.Self().LifestyleTransient());
  
  container.Register(
    Component.For&lt;IRepository&gt;()
    .ImplementedBy&lt;GenericRepository&gt;().DependsOn(Dependency.OnValue("context", "ProjectContext"))
    .LifeStyle.PerWebRequest);
  
  container.Register(
    Types.FromAssembly(Assembly.GetAssembly(typeof(IUserService)))
    .BasedOn(typeof(ServiceBase))
    .WithService.DefaultInterfaces().LifestylePerWebRequest());
  
  DependencyResolver.SetResolver(new WindsorDependencyResolver(container));
  }
  </code></pre>