On different machines, we see different exceptions.
One machine reports
System.Runtime.InteropServices.COMException (The RPC server is unavailable. (Exception from HRESULT: 0x800706BA))
Another reports
System.BadImageFormatException ( An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B))
Yet another reports
System.InvalidCastException (Specified cast is not valid.)
What causes this and what's the correct fix?