title: MVC5 and Ninject:Parameterless constructor error
body: <p>In MVC 5 we get this account controller that looks like this.</p>
  
  <pre><code>public class AccountController : Controller
          {
  
              public AccountController()
                  : this(new UserManager&lt;ApplicationUser&gt;(new UserStore&lt;ApplicationUser&gt;(new DatePickerDbContext())))
              {
  
              }
  
              public AccountController(UserManager&lt;ApplicationUser&gt; userManager)
              {
                  UserManager = userManager;
              }
          }
  </code></pre>
  
  <p>I installed Ninject to  handle my dependency injection. I have two repositories, that I want to use in my AccountController
  and the code now looks like this</p>
  
  <pre><code>    public class AccountController : Controller
      {
                private readonly ILicenserepository _licenserepository;
                private readonly IUserRepository _userRepository;    
  
          public AccountController(ILicenserepository licenserepository, IUserRepository userRepository)
              : this(new UserManager&lt;ApplicationUser&gt;(new UserStore&lt;ApplicationUser&gt;(new DatePickerDbContext())))
          {
              _licenserepository = licenserepository;
              _userRepository = userRepository;
          }
  
          public AccountController(UserManager&lt;ApplicationUser&gt; userManager)
          {
              UserManager = userManager;
          }
      }
  </code></pre>
  
  <p>in ninject.web.common this is what i've done</p>
  
  <pre><code>private static void RegisterServices(IKernel kernel)
  {
      kernel.Bind(typeof (ILicenserepository)).To(typeof (Licenserepository));
      kernel.Bind(typeof (IUserRepository)).To(typeof (UserRepository));
  }    
  </code></pre>
  
  <p>but when I run the application i get the error on browser that says no parametereless constructor found. And if i create parameter less constructor my repositories doesn't get instantiated. So wherever i called the method from repository the value is null.
  How can I solve this problem? Or make MVC or Ninject know which constructor to call?</p>