I have a console application that works fine on a 32 bit machine. But I had a problem running the executable on a 64-bit Windows server. The error message I get is:
The type initializer for "Sybase.Data.AseClient1.AseConnection" made an exception. System.BadImageFormatException. An attempt was made to download a program with the wrong format. in Sybase.Data.AseClient.Unmanaged.AseGetDriverVersion in Sybase.Data.Aseclient1.AseConnection.CheckVersion ().
Has anyone seen this error?
Update: After compiling on X86, I get:
Inconsistency of the main version of sybdrvado20.dll. Waiting for major version "2". Version 1 is loaded in Sybase.Data.AseClient1.AseConnection.CheckVerison.
Please note that the latest version of Sybase is installed on the server.
source
share