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 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办