64位.NET Informix ADO.NET提供程序的程序集加载错误 [英] Assembly load error for 64 bit .NET Informix ADO.NET provider

查看:85
本文介绍了64位.NET Informix ADO.NET提供程序的程序集加载错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行64位Windows7。我有一个.NET 4.0 Web项目和一个访问Informix数据库的类库项目。我安装了IBM Informix Client SDK版本3.70.FC4(64位版本,.NET 2.0运行时)。

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).

每个 IBM Informix .Net提供程序指南


  1. 我将目录%INFORMIXDIR%/ bin / netf20 /添加到PATH变量

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

我添加了对IBM.Data.Informix的引用类库项目中的.dll(版本3.0.0.2)。

I added a reference to the IBM.Data.Informix.dll (version 3.0.0.2) in the Class Library Project.

当我运行Web项目时,我得到了错误:

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.

有什么建议吗?

推荐答案

我要解决的步骤:


  1. 在以下列表中选择IBM.Data.Informix DLL。引用和开放属性。设置本地复制 = False

  2. 清洁解决方案,然后尝试构建。

  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.

这篇关于64位.NET Informix ADO.NET提供程序的程序集加载错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆