title: How do I use Ninject to inject AutoMapper Mapper in place of IMapper?
body: <p>I get this injector error </p>
  
  <p>Error activating IConfigurationProvider
  No matching bindings are available, and the type is not self-bindable.
  Activation path:
   3) Injection of dependency IConfigurationProvider into parameter configurationProvider of constructor of type Mapper
   2) Injection of dependency IMapper into parameter mapper of constructor of type MyController
   1) Request for MyController</p>
  
  <p>My global asx</p>
  
  <pre><code>Mapper.Initialize(c =&gt; c.AddProfile&lt;MappingProfile&gt;());
  </code></pre>
  
  <p>My mapping profile</p>
  
  <pre><code>    public class MappingProfile : Profile
      {
      public MappingProfile()
      {
          CreateMap&lt;Obj, ObjBO&gt;().ReverseMap();
      }
      }
  </code></pre>
  
  <p>My Controller</p>
  
  <pre><code>    private readonly IMapper _mapper;
  
      public MyController(IMapper mapper)
      {
  
          _mapper = mapper;
      }
  </code></pre>
  
  <p>Trying to use the mapper like this</p>
  
  <pre><code>        IEnumerable&lt;ObjBO&gt; list = _repo.GetObjs();
          IEnumerable &lt;Obj&gt; mappedList= _mapper.Map&lt;IEnumerable&lt;Obj&gt;&gt;(list);
  </code></pre>
  
  <p>I tried adding this to NinjectWebCommons</p>
  
  <pre><code>                private static void RegisterServices(IKernel kernel)
                  {
                     kernel.Bind&lt;IMapper&gt;().To&lt;Mapper&gt;().InRequestScope();
                  }
  </code></pre>