title: None of the constructors found can be invoked with the available services and parameters Autofac
body: <p>I have read and coding follow example: <a href="http://timschreiber.com/2015/01/14/persistence-ignorant-asp-net-identity-with-patterns-part-1/" rel="nofollow">http://timschreiber.com/2015/01/14/persistence-ignorant-asp-net-identity-with-patterns-part-1/</a>
  But that example used Unity for DI, but i'm used Autofac for ID, when i try run my project i have the following error: </p>
  
  <blockquote>
    <p>None of the constructors found with  'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type
    'App.Front.Controllers.HomeController' can be invoked with the
    available services and parameters: Cannot resolve parameter
    'Microsoft.AspNet.Identity.UserManager<code>2[IdentityStore.IdentityUser,System.Guid]
    userManager' of constructor 'Void
    .ctor(Microsoft.AspNet.Identity.UserManager</code>2[IdentityStore.IdentityUser,System.Guid])'.</p>
  </blockquote>
  
  <p>My code: </p>
  
  <pre><code>public class IdentityModule : Module
  {
      protected override void Load(ContainerBuilder builder)
      {
          //var dbContextParameter = new ResolvedParameter((pi, ctx) =&gt; pi.ParameterType == typeof(DbContext),
          //                                               (pi, ctx) =&gt; ctx.Resolve&lt;AppContext&gt;());
          builder.RegisterType&lt;UserStore&gt;().As&lt;IUserStore&lt;IdentityUser, Guid&gt;&gt;().InstancePerLifetimeScope();
          builder.RegisterType&lt;RoleStore&gt;().InstancePerLifetimeScope();
      }
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>private static void SetAutofacContainer()
  {
      var builder = new ContainerBuilder();
      var mainModules = BuildManager.GetReferencedAssemblies().Cast&lt;Assembly&gt;().Where(p =&gt; p.ManifestModule.Name.StartsWith("App.")).ToArray();
      builder.RegisterControllers(mainModules);
      builder.RegisterAssemblyModules(mainModules);
  
      builder.RegisterFilterProvider();
      builder.RegisterSource(new ViewRegistrationSource());
  
      builder.RegisterModule(new EFModule());
      builder.RegisterModule(new RepositoryModule());
      builder.RegisterModule(new IdentityModule());
      builder.RegisterModule(new ServiceModule());
      var container = builder.Build();
      DependencyResolver.SetResolver(new AutofacDependencyResolver(container));
  
  }
  </code></pre>
  
  <p>Any one help me please!.</p>