Search code examples
.netvb.netdllvisual-studio-2015braintree

Could not load file or assembly "Braintree" or one of its dependencies


So the Braintree Sandbox now only uses TLS 1.2, and much like hasnayn in this forum question, after running into the issue, realized I needed the latest Braintree SDK.

So I've downloaded the DLL (File version 3.0.0.0, Product version 3.3.0), updated my project to .NET 4.5.2, removed the previous DLL from my production DLL project, and added the new one, but now I'm getting this error when trying to call any Braintree function:

Could not load file or assembly 'Braintree, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31b586f34d3e96c7' or one of its dependencies. The system cannot find the file specified.

I scoured the internet for a couple days now, even trying other DLL releases, and I get the same result, with no hint as to the issue.

I would greatly appreciate any help.

Thanks!


Solution

  • Try renaming the braintree dll to just Braintree.dll. If the file name is Braintree-net452.dll, it doesn't copy to bin folder for some reason.