问题
I am running 64 bit Windows 7. I have a .NET 4.0 web project and a Class Library Project that accesses an Informix database. I installed the IBM Informix Client SDK version 3.70.FC4 (64 bit version, .NET 2.0 runtime).
Per the IBM Informix .Net Provider Guide
I added the directory %INFORMIXDIR%/bin/netf20/ to the PATH variable
I added a reference to the IBM.Data.Informix.dll (version 3.0.0.2) in the Class Library Project.
When I run the web project I get this error:
Could not load file or assembly 'IBM.Data.Informix' or one of its dependencies.
An attempt was made to load a program with an incorrect format.
Any advice on what to do?
回答1:
My steps to solve:
- Choose the IBM.Data.Informix DLL under the list of References and open properties. Set 'Copy Local' = False.
- Clean solution and try to build.
来源:https://stackoverflow.com/questions/10525029/assembly-load-error-for-64-bit-net-informix-ado-net-provider