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

Decimal128 throws System.IO.EndOfStreamException

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4
    • Component/s: BSON
    • Environment:
      C# Driver 2.4.0
      MongoDB 3.4.0

      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.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            shawnshaddock Shawn Shaddock
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: