1

尝试连接到 Informix 数据库时,我不断收到错误消息。

我正在使用 VS2008、.NET 4 框架、IBM Informix Connect 3.7 64bit

编码

Dim connectionstring As String =  "myconnectionstring"

    Dim conn As New IfxConnection

    conn.ConnectionString = connectionstring
    Try
        conn.Open()
        MsgBox("Made connection!")

    Catch ex As Exception
        MsgBox(ex.Message)
    End Try

我知道连接字符串可以工作,因为这个确切的代码可以在我的旧 32 位机器上工作。

错误

Unable to load DLL IfxDotNetIntrinsic Module.dll the specific module could not be found

我已经检查了 Setnet 32​​ 并且它是正确的,我已经卸载并重新安装了驱动程序。我只是不知道下一步该怎么做——你能帮忙吗?

4

1 回答 1

2

仅供参考: Informix 客户端 SDK 附带的 .NET Provider 是使用 .NET Framework 2.0(不是 FW 4.0)编译的。

如果您尝试在 Windows 64 位系统上使用来自 32 位 Informix Client SDK 的 .NET 提供程序,那么您可能需要手动将以下 DLL 复制到设置了路径的位置。

<Informix Client Install Dir>\bin\netf20\IfxDotNetIntrinsicModule.dll

最有可能的路径可能已经设置为<Informix Client Install Dir>\bin。那么这可能是复制它的理想位置。

于 2013-03-21T20:47:28.097 回答