I have DB2 server that I'm trying to connect from my machine, but I keep getting the below error when I start the application, before even start the connection
System.BadImageFormatException: 'Could not load file or assembly 'IBM.Data.DB2, Version=9.7.4.4, Culture=neutral, PublicKeyToken=7c307b91aa13d208' or one of its dependencies. An attempt was made to load a program with an incorrect format.'
please not that I don't have DB2 driver installed on my machine. but I refer to the below libraries in my application, which I got them from DB2 database server.
- IBM.Data.DB2;
- IBM.Data.DB2.Entity;
- IBM.Data.Informix;