The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Question:
We want to use the 64-bit version of the Chilkat email functionality, but we get a could not load error message (see below for full error) when i use the v8.5.0 release of the Chilkat library. This also happens when i use the 32-bit version. Is it possible that the license key is linked to a specific version of the Chilkat library in our case version 8.2.2.0?

If so how can we upgrade to 8.5.0, because we need to be able to install our software on a 64-bit machine.

Could not load file or assembly ‘ChilkatDotNet2, Version=8.2.2.0, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Answer:
The .NET runtime requires that the assembly version matches exactly. The version of the assembly used in your Visual Studio project (i.e. on your development machine) must match the version deployed to your production system. The platform may be different: win32 vs. x64, but the version must match. The solution is to use Chilkat v8.5.0 in your Visual Studio development environment. New-version upgrades are always free, so you may download the latest at Chilkat Software Component Downloads