title: MongoDB - The type initializer for 'MongoDB.Bson.ObjectId' threw an exception
body: <p>I'm just wondering if anyone has ever seen this exception? I'm using the C# driver and have successfully run this code on many servers. We are seeing this on one particular production server.</p>
  
  <p>The first time I see this is on the first insert into a new collection. After that it seems to occur each time I call InsertBatch for that collection.</p>
  
  <p>I've successfully called InsertBatch on other collections successfully during the same run.</p>
  
  <p>Error*<em>*</em> Message = The type initializer for 'MongoDB.Bson.ObjectId' threw an exception., Stack Trace =    at MongoDB.Bson.ObjectId.GenerateNewId()
     at MongoDB.Bson.Serialization.IdGenerators.BsonObjectIdGenerator.GenerateId(Object container, Object document)
     at MongoDB.Driver.MongoCollection.InsertBatch(Type nominalType, IEnumerable documents, MongoInsertOptions options)</p>
  
  <p>Thanks,</p>
  
  <p>Paul</p>