title: Missing type map configuration or unsupported mapping
body: <p>Could somebody please explain what this error means? I have used automapper onces before but never had this kind of error.</p>
  
  <p><strong>Error</strong></p>
  
  <p>The server encountered an error processing the request. The exception message is 'Missing type map configuration or unsupported mapping. Mapping types: Char -> QuestionDto System.Char -> CollectiveDistributedPolling.QuestionDto Destination path: QuestionDto.Question1.Question1.Question10[0] Source value: R'.</p>
  
  <p><strong>Service1.svc.cs</strong></p>
  
  <pre><code>public Service1() {
      Mapper.CreateMap&lt;Question, QuestionDto&gt;();
      Mapper.CreateMap&lt;QuestionDto, Question&gt;();
  }
  
  private Question MapToQuestion(QuestionDto q)
  {
         return Mapper.Map&lt;QuestionDto, Question&gt;(q);
  }
  
  private QuestionDto MapToQuestionDto(Question q) &lt;&lt;&lt; EXCEPTION GETS THROWN HERE
  {
         return Mapper.Map&lt;Question, QuestionDto&gt;(q);
  }
  
  public QuestionDto ThrowQuestion(string user)
  {
         return MapToQuestionDto(Database.GetInstance().ThrowQuestion(user));
  }
  </code></pre>
  
  <p><strong>IService1.cs</strong></p>
  
  <pre><code> [OperationContract]
          [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json)]
          QuestionDto ThrowQuestion(String user);
  
  [DataContract]
      public class QuestionDto
      {
          [DataMember]
          public int ID { get; set; }
          [DataMember]
          public int next { get; set; }   
          [DataMember]
          public String question { get; set; }   
          [DataMember]
          public ICollection&lt;QuestionDto&gt; QuestionPhrase { get; set; } 
          [DataMember]
          public QuestionDto Next{ get; set; } 
          [DataMember]
          public ICollection&lt;QuestionAnswerDto&gt; QuestionAnswer { get; set; } 
          [DataMember]
          public ICollection&lt;UserAnswerDto&gt; UserAnswer { get; set; } 
      }
  </code></pre>
  
  <p><strong>Question.cs</strong></p>
  
  <pre><code>    public partial class Question
      {
          public Question()
          {
              this.QuestionPhrase = new HashSet&lt;Question&gt;();
              this.QuestionAnswer = new HashSet&lt;QuestionAnswer&gt;();
              this.UserAnswer = new HashSet&lt;UserAnswer&gt;();
          }
  
          public int ID { get; set; }
          public string question { get; set; }
          public Nullable&lt;int&gt; next { get; set; }
  
          public virtual ICollection&lt;Question&gt; QuestionPhrase { get; set; }
          public virtual Question Next { get; set; }
          public virtual ICollection&lt;QuestionAnswer&gt; QuestionAnswer { get; set; }
          public virtual ICollection&lt;UserAnswer&gt; UserAnswer { get; set; }
      }
  }
  </code></pre>
  
  <p>Thanks to danludwig I could pinpoint the problem. It has something to do with </p>
  
  <pre><code>[DataMember]
  public QuestionDto Next{ get; set; } 
  </code></pre>
  
  <p>But that mapping seems fine to me</p>