Fail to load BouncyCastle.Crypto, Version = 1.8.1.0
See original GitHub issueI had problems with DistanceMatrix api in my .Net Framework 4.5 project. When I exec the call for
var response = GoogleMaps.DistanceMatrix.QueryAsync(request).Result;
I had the error below:
Could not load file or assembly 'BouncyCastle.Crypto, Version = 1.8.1.0, Culture = neutral, PublicKeyToken = 0e99375e54769942' or one of its dependencies. The system cannot find the file specified.
I searched in project dependencies and the BrounceCastle.Cripto is there.
Can someone helpe me to solve this problem?

Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
c# - Could not load file or assembly 'BouncyCastle.Crypto ...
This error says.. BouncyCastle.Crypto.dll file is not exist in the project bin folder. I placed to dll file into the bin folder from...
Read more >Downloading and Repairing BouncyCastle.Crypto.dll
Learn how to download and replace your correct version of BouncyCastle.Crypto.dll and fix these annoying DLL error messages.
Read more >[JWT] Error create token when another extension also use ...
I have error creating asymmetric token when I have another extension dependency which also use BouncyCaslte.Crypto.dll. The error stack is:.
Read more >C# – Could not load file or assembly 'BouncyCastle.Crypto ...
I am trying to integrate the Walmart .NET SDK into a .NET 4.61 MVC 5 app. Using NuGet, I added a reference to...
Read more >Could not load file or assembly 'BouncyCastle.Crypto
Hello, I have a total license installed on SSRS 2005. When I run a report word I get the following output: Aspose.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi It could be a problem with the NuGet. It’s a long time since I worked with 4.5.
I will check it out
I have updated the Portable.BouncyCastle to the highest version, that GoogleApi can support for the different frameworks. I have recently worked with net framework 4.8, and in complex solutions this mess often happens. Try look for overrides in the project files and trace the use of the different packages.
I am not sure if there is more I can do, as the problem originates outside this Library. Hope you figure it out
will close issue.