title: Auto Mapper v4.2.1 - Missing type map configuration or unsupported mapping
body: <p>I have an asp.net mvc application developed with VS2015.</p>
  
  <p>In the Application_Start method of Global.asax.cs a method containing the following is called:</p>
  
  <pre><code>Mapper.Initialize(cfg =&gt; cfg.CreateMap&lt;Domain.ESB.Fault, Models.FaultVmRec&gt;());
  Mapper.Initialize(cfg =&gt; cfg.CreateMap&lt;Models.FaultVmRec, Domain.ESB.Fault&gt;());
  </code></pre>
  
  <p>I've checked that this does get executed by adding a breakpoint.</p>
  
  <p>In my controller, I have the following:</p>
  
  <pre><code>faultVmRec = Mapper.Map&lt;Fault, FaultVmRec&gt;(item);
  </code></pre>
  
  <p>At this line, I'm getting the exception:</p>
  
  <blockquote>
    <p>{"Missing type map configuration or unsupported mapping.\r\n\r\nMapping types:\r\nFault -> FaultVmRec\r\nLGSS.Unit4.BamPortal.Domain.ESB.Fault -> LGSS.Unit4.BamPortal.Website.Models.FaultVmRec\r\n\r\nDestination path:\r\nFaultVmRec\r\n\r\nSource value:\r\nSystem.Data.Entity.DynamicProxies.Fault_805BF7128A26886D33A8989DFA212C8E378EDADE588B0922B23ECFE7F697D907"}</p>
  </blockquote>
  
  <p>However, if I paste in to explicitly initialize the mapping before executing the map as follows:</p>
  
  <pre><code>Mapper.Initialize(cfg =&gt; cfg.CreateMap&lt;Domain.ESB.Fault, Models.FaultVmRec&gt;());
  faultVmRec = Mapper.Map&lt;Fault, FaultVmRec&gt;(item);
  </code></pre>
  
  <p>Then it works fine!</p>
  
  <p>Anyone see where I'm going wrong please?</p>