Assembly load error for 64 bit .NET Informix ADO.NET provider

♀尐吖头ヾ 提交于 2019-12-10 15:04:32

问题


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

  1. I added the directory %INFORMIXDIR%/bin/netf20/ to the PATH variable

  2. 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:

  1. Choose the IBM.Data.Informix DLL under the list of References and open properties. Set 'Copy Local' = False.
  2. Clean solution and try to build.


来源:https://stackoverflow.com/questions/10525029/assembly-load-error-for-64-bit-net-informix-ado-net-provider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!