Symptoms
After upgrading our custom application to 4.6.11 K2 blackpearl dlls we are receiving the following error-
System.BadImageFormatException: Could not load file or assembly SourceCode.HostClientAPI’
We looked further and saw that the one dll : SourceCode.HostClientAPI was in 64 bit format while the rest was in 32 bit. We did try to retrieve the dll from c:program files (x86)K2 blackpearlin (the 32 bit folder)- but this too had the 64 bit version of the dll. Where can we find the 32 bit version of this dll?
Diagnoses
This appears to be a known issue where SourceCode.HostClientAPI in both blackpearlin and blackpearlHost Serverin are 64 bit.
Resolution
The workaround is to retrieve the 32-bit version from GAC to resolve the issue.