System.InvalidOperationException' occurred in AutoMapper.dll. Additional information: Mapper not initialized
<p>I use to find AutoMapper very simple to use.  I am struggling with the new version.  I have two types:</p>

<pre><code>namespace VehicleMVC.Models
{
    public class CarModel
    {
        public int id { get; set; }
        public string make { get; set; }
        public string model { get; set; }

    }
}
</code></pre>

<p>and:</p>

<pre><code>namespace Business
{
    public class Car
    {

        private int _id;
        private string _make;
        private string _model;

        public int id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string make
        {
            get { return _make; }
            set { _make = value; }
        }

        public string model
        {
            get { return _model; }
            set { _model = value; }
        }

    }  
}
</code></pre>

<p>I have tried this in CarController:</p>

<pre><code>public CarController()
        {
            service = new Service.Service();
            //Mapper.Initialize(cfg =&gt; cfg.CreateMap&lt;Business.Car,CarModel&gt;());
            //Mapper.Initialize(cfg =&gt; cfg.CreateMap&lt;List&lt;CarModel&gt;, List&lt;Business.Car&gt;&gt;());
            var config = new MapperConfiguration(cfg =&gt;
                {
                    cfg.CreateMap&lt;Business.Car, CarModel&gt;();
            }       );
            config.AssertConfigurationIsValid();

        }

private CarModel getCarModel(Business.Car BusinessCar)
        {
            CarModel CarModel = AutoMapper.Mapper.Map&lt;CarModel&gt;(BusinessCar);
            return CarModel;
        }
</code></pre>

<p>The error I get is: An exception of type <code>'System.InvalidOperationException' occurred in AutoMapper.dll.  Additional information: Mapper not initialized. Call Initialize with appropriate configuration.</code> but was not handled in user code.  What is wrong?</p>