title: MongoDB C# driver Method Not Found MongoDB.Bson.Serialization.BsonSerializationInfo ByRef
body: <p>I am trying to get some results from <code>MongoDB</code> using <code>C# driver</code> (Latest driver Version 2.0.1.27). </p>
  
  <p>This is how I call the mongo :</p>
  
  <pre><code> public static async Task &lt; List &lt; MomLogModel &gt;&gt; MomLogAr(MomLogArModel arama) {
       var asd = Builders &lt; MomLogModel &gt; .Filter.Where(a =&gt; a.SipID == arama.SipID);
       asd = asd &amp; Builders &lt; MomLogModel &gt; .Filter.Where(a =&gt; a._id == arama._id);
       var donucek = await mongoContex.MomLog.Find(asd).ToListAsync().ConfigureAwait(false);
   }
  </code></pre>
  
  <p>This is the class of MomLogModel : </p>
  
  <pre><code> public class MomLogModel {
      [BsonRepresentation(BsonType.ObjectId)]
      public string _id {
      get;
      set;
      }
  
      [BsonElement("g")]
      public BsonDocument gelen {
      get;
      set;
      }
  
      [BsonElement("t")]
      public DateTime YaratTarih {
      get {
          return DateTime.Now;
      }
      set {
          YaratilisTarih = value;
      }
      }
  
      [BsonElement("m")]
      public string MesajKod {
      get;
      set;
      }
  
      [BsonElement("re")]
      public bool Rar {
      get;
      set;
      }
  
      [BsonElement("kz")]
      public double KaZa {
      get;
      set;
      }
  
      [BsonElement("si")]
      public int SipID {
      get;
      set;
      }
  }
  </code></pre>
  
  <p>When I run this I get the following error : </p>
  
  <pre><code>Method not found: 'Boolean MongoDB.Bson.Serialization.IBsonArraySerializer.TryGetItemSerializationInfo(MongoDB.Bson.Serialization.BsonSerializationInfo ByRef)'.
  </code></pre>
  
  <p>I have tried removing the <code>BsonRepresentation</code> from model but it didn't solve the issue. </p>
  
  <p>Also tried changing it but cannot figure out what is causing the problem at all.</p>