Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1860

Decimal128 throws System.IO.EndOfStreamException

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: Bson
    • Labels:
    • Environment:
      C# Driver 2.4.0
      MongoDB 3.4.0
    • Sprint:
      C# Sprint 46

      Description

      When attempting to serialize System.Decimal as BsonType.Decimal128

      [BsonRepresentation(BsonType.Decimal128)]
      public decimal Amount { get; set; }
      

      An EndOfStreamException is thrown:
      MongoDB.Driver.MongoConnectionException: An exception occurred while receiving a message from the server. ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: