-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Serialization
-
None
-
None
-
Dotnet Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Summary
After upgrading to MongoDb driver version 3 our software starts throwing NotImplementedException
The problem is in class DictionarySerializerBase<TDictionary, TKey, TValue>
If you check the above implementation we have a couple of bugs. The first one is that the throw new notimplementedexception must use the very same message of the Obsolete attribute, or we, as user, receive a generic NotImplementedException without any clue.
But the bug is that, the attribute told me to call CreateAccumulator, but CreateAccumulator call the very obsolete method with a pragma disable, so it will throw error. The net result is that I have custom DictionarySerializer that are not working anymore because that class is now broken.
Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
Version 3