Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
(copied to CRM)
Description
When a System.PlatformNotSupportedException is raised it is not clear which library failed to load.
For example in the following test case it's not clear the failure is due to the zstd compressor failing when targeting Any CPU vs. x64:
[TestMethod]
|
public void TestMethodFails() |
{
|
MongoClient client = new MongoClient("mongodb://localhost:27017/?compressors=zstd,zlib,snappy"); |
IMongoDatabase db = client.GetDatabase("test"); |
IMongoCollection<BsonDocument> collection = db.GetCollection<BsonDocument>("foo"); |
FilterDefinition<BsonDocument> filter = Builders<BsonDocument>.Filter.Empty;
|
BsonDocument first = collection.Find(filter).FirstOrDefault();
|
}
|