Sledgehammer_Adia 2017-03-12 04:20 采纳率: 0%
浏览 1481

关于VS2008连接informix数据库的问题

用户代码未处理 System.TypeInitializationException
Message="“IBM.Data.Informix.IfxConnection”的类型初始值设定项引发异常。"
Source="IBM.Data.Informix"
TypeName="IBM.Data.Informix.IfxConnection"
StackTrace:
在 IBM.Data.Informix.IfxConnection..ctor(String connectionString)
在 dal.DaoBase.get_Connection() 位置 D:\NewSystem\开发\net\jyfx\dal\DaoBase.cs:行号 29
在 dal.AbstractQuery.Execute(String cmdText, Boolean isStore, IfxParameter[] paramz) 位置 D:\NewSystem\开发\net\jyfx\dal\AbstractQuery.cs:行号 27
在 dal.AbstractQuery.ExecuteQuery(String cmdText, IfxParameter[] paramz) 位置 D:\NewSystem\开发\net\jyfx\dal\AbstractQuery.cs:行号 19
在 dal.UserDao.getone(String ucode, String pass, String lip) 位置 D:\NewSystem\开发\net\jyfx\dal\UserDao.cs:行号 31
在 admin_checkLogin.Page_Load(Object sender, EventArgs e) 位置 d:\NewSystem\开发\net\jyfx\jyfx\Component\checkLogin.aspx.cs:行号 61
在 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException: System.DllNotFoundException
Message="无法加载 DLL“iclit09b.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。"
Source="IBM.Data.Informix"
TypeName=""
StackTrace:
在 IBM.Data.Common.UnsafeNativeMethods.Ifx32.SQLAllocHandle(Int16 HandleType, IntPtr InputHandle, IntPtr& OutputHandle)
在 IBM.Data.Informix.IfxConnPoolManager..ctor()
在 IBM.Data.Informix.IfxConnection..cctor()
InnerException:

以前都是重装系统解决的,但这次重装了很多次都没有用。iclit09b.dll在debug目录下都有,但IBM.Data.Informix文件仍然无法加载iclit09b.dll。求大神指教
  • 写回答

1条回答 默认 最新

  • threenewbee 2017-03-12 08:50
    关注

    你的操作系统是64bit的么?需要强制编译程序集为32bit

    评论

报告相同问题?

悬赏问题

  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥50 汇编语言除法溢出问题
  • ¥65 C++实现删除N个数据列表共有的元素
  • ¥15 Visual Studio问题
  • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波