-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.4.2
-
Component/s: None
-
None
-
Environment:Latest sources against mongodb 2.1.2. The same test succeeds against 2.0.6
MongoDB.DriverUnitTests.MongoDatabaseTests.TestGetProfilingInfo:
System.InvalidOperationException : ReadBsonType can only be called when State is Type, not when State is Value.
The stack trace is
at MongoDB.Bson.IO.BsonReader.ThrowInvalidState(String methodName, BsonReaderState[] validStates) in C:\source\mongo-csharp-driver\Bson\IO\BsonReader.cs:line 745
at MongoDB.Bson.IO.BsonBinaryReader.ReadBsonType[TValue](BsonTrie`1 bsonTrie, Boolean& found, TValue& value) in C:\source\mongo-csharp-driver\Bson\IO\BsonBinaryReader.cs:line 181
at MongoDB.Bson.IO.BsonReader.ReadBsonType() in C:\source\mongo-csharp-driver\Bson\IO\BsonReader.cs:line 375
at MongoDB.Driver.SystemProfileInfoSerializer.Deserialize(BsonReader bsonReader, Type nominalType, Type actualType, IBsonSerializationOptions options) in C:\source\mongo-csharp-driver\Driver\Core\SystemProfileInfo.cs:line 382
at MongoDB.Bson.Serialization.Serializers.BsonBaseSerializer.Deserialize(BsonReader bsonReader, Type nominalType, IBsonSerializationOptions options) in C:\source\mongo-csharp-driver\Bson\Serialization\Serializers\BsonBaseSerializer.cs:line 77
at MongoDB.Bson.Serialization.BsonSerializer.Deserialize(BsonReader bsonReader, Type nominalType, IBsonSerializationOptions options) in C:\source\mongo-csharp-driver\Bson\Serialization\BsonSerializer.cs:line 230
at MongoDB.Driver.Internal.MongoReplyMessage`1.ReadFrom(BsonBuffer buffer, IBsonSerializationOptions serializationOptions) in C:\source\mongo-csharp-driver\Driver\Internal\MongoReplyMessage.cs:line 105
at MongoDB.Driver.Internal.MongoConnection.ReceiveMessage[TDocument](BsonBinaryReaderSettings readerSettings, IBsonSerializationOptions serializationOptions) in C:\source\mongo-csharp-driver\Driver\Internal\MongoConnection.cs:line 445
at MongoDB.Driver.MongoCursorEnumerator`1.GetReply(MongoConnection connection, MongoRequestMessage message) in C:\source\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:line 296
at MongoDB.Driver.MongoCursorEnumerator`1.GetFirst() in C:\source\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:line 253
at MongoDB.Driver.MongoCursorEnumerator`1.MoveNext() in C:\source\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:line 141
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at MongoDB.DriverUnitTests.MongoDatabaseTests.TestGetProfilingInfo() in C:\source\mongo-csharp-driver\DriverUnitTests\Core\MongoDatabaseTests.cs:line 181