Error with .ToList() method

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: 8.0.0
    • None
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Received the following error when trying to retrieve a list of strings using EF and using the .ToList() method. Inserting the list works fine.  The issue does not occur when using the ToArray method.

      Error: MongoDB.Bson.BsonSerializationException: 'Unknown discriminator value 'List`1'.' 

              Assignee:
              Unassigned
              Reporter:
              Josh Mettle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: