-
Type: Task
-
Resolution: Works as Designed
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: Serialization
-
None
Running the code in the attached project results in an exception:
System.InvalidOperationException: 'An Array value cannot be written to the root level of a BSON document.'
when using MongoDB.Bson version 2.11.0 or higher.
The issue does not reproduce when using 2.10.4 or lower.
It seems to be related to CSHARP-2877.
- related to
-
CSHARP-2877 Default BsonSerializationArgs sometimes has null NominalType
- Closed