title: AutoMapper Exception: Missing type map configuration or unsupported mapping
body: <p>I have an ASP.Net Core C# application &amp; using <code>AutoMapper</code></p>
  <p>DTO</p>
  <pre><code>public class ApplicationUserDto
      {
          public string Id { get; set; }
  
          public string AdSoyad { get; set; }
  
  
          public string UserName { get; set; }
  
  
          public string UserId { get; set; }
  
          public string Pass { get; set; }
  
      }
  </code></pre>
  <p>Model</p>
  <pre><code> public class ApplicationUser : IdentityUser 
      {
          public ApplicationUser()
          {
              PassNotes = new Collection&lt;PassNote&gt;();
          }
  
          public string AdSoyad { get; set; }
          public string Adres { get; set; }
          public string Sehir { get; set; }
          public string PostaKodu { get; set; }
          public ICollection&lt;PassNote&gt; PassNotes { get; set; }
      }
  
  
  
  public class PassNote
      {
          [Key]
          public int Id { get; set; }
  
          [Required]
          public string UserName { get; set; }
  
          [Required]
          public string Password { get; set; }
          public string ApplicationUserId { get; set; }
          public string UserId { get; set; }
  
  
          public virtual ApplicationUser ApplicationUser { get; set; }
  </code></pre>
  <p>AutoMapper Configuration</p>
  <pre><code>public class MapProfile:Profile
      {
          public MapProfile()
          {
              CreateMap&lt;PassNote, PassNoteDto&gt;();
              CreateMap&lt;PassNoteDto, PassNote&gt;();
              CreateMap&lt;ApplicationUser,ApplicationUserDto&gt;();
              CreateMap&lt;ApplicationUserDto, ApplicationUser&gt;();
           
          }
      }
  </code></pre>
  <p>Signature</p>
  <pre><code>return await _appDbContext.ApplicationUser.Include(x =&gt; x.PassNotes).SingleOrDefaultAsync(x =&gt; x.Id == userId);
  </code></pre>
  <p>Controller</p>
  <pre><code> public async Task&lt;IActionResult&gt; List(string id)
          {
              var applicationUser = await _applicationUserService.GetWithUserByIdAsync(id);
              return View(_mapper.Map&lt;IEnumerable&lt;ApplicationUserDto&gt;&gt;(applicationUser));
          }
  </code></pre>
  <p>When the controller is return, it throws the below run time error.</p>
  <blockquote>
  <p>AutoMapperMappingException: Missing type map configuration or unsupported mapping. Mapping types: Object -&gt; IEnumerable<code>1 System.Object -&gt; System.Collections.Generic.IEnumerable</code>1[[Recorder.Web.DTOs.ApplicationUserDto, Recorder.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]</p>
  </blockquote>
  <p>How to typecast/map this ?</p>
  <p>Thanks!</p>