'Loading libzstd.dll in C# ASPNet Framework application

I'm upgrading the mongo driver to an ASPNet Framework (4.8) application from 2.7.3 to the latest, 2.15.0. I just use VS to upgrade the nuget packages, nothing else, and when I run it, I get:

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Program Files (x86)\IIS Express\iisexpress.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\git\***\bin\libzstd.dll
LOG: Appbase = file:///C:/git/***/
LOG: Initial PrivatePath = C:\git\***\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: C:\git\***\web.config
LOG: Using host configuration file: C:\Users\***\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Attempting download of new URL file:///C:/git/***/bin/libzstd.dll.
ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.

I'm not sure what step(s) I'm missing here.



Solution 1:[1]

libzstd.dll seems to an unmanaged library that's part of the the Mongo Driver.

As far as I could check, the error can be safely ignored. It's just thrown because the DLL it's in the bin folder and .NET tries to load it automatically.

The same occured for the deprecated Crc32C.NET and Snappy.NET packages, that was dependencies for older versions of the MongoDB Drivers and now can be safely removed.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Anderson Pimentel