I have setup CSFLE using the C Sharp driver and was able to encrypt a field in a document. I am now trying to read that document using the same driver.
When I execute
var clientEncryption = new ClientEncryption(clientEncryptionSettings);
it fails with the following error
System.IO.FileNotFoundException: ‘Could not find: mongocrypt.dll –
Tried: C:\Users\brian.bernholtz\AppData\Local\Temp\Temporary ASP.NET Files\vs\a629dec2\a52e73f9\assembly\dl3\451c2076\009d89cc_8b9ad501…\x64\native\windows\mongocrypt.dll,C:\Users\brian.bernholtz\AppData\Local\Temp\Temporary ASP.NET Files\vs\a629dec2\a52e73f9\assembly\dl3\451c2076\009d89cc_8b9ad501\mongocrypt.dll’
The mongocrypt.dll file is clearly in my BIN directories. I even tried physically copying the file from my local BIN dir to the temp location specified and it still bombs out with same error.
Any thoughts on why I cannot find this DLL?