Asp.net 尝试使用DSN连接到Informix db时,oledbConnection.Open()会产生错误E_FAIL(0x80004005)

Asp.net 尝试使用DSN连接到Informix db时,oledbConnection.Open()会产生错误E_FAIL(0x80004005),asp.net,connection-string,informix,Asp.net,Connection String,Informix,我正在尝试使用OledbConnection对象连接到Informix数据库, 在ASP.NET脚本中使用VB我的代码如下: Dim oledbConnection = New OleDbConnection("Provider=ifxoledbc;DSN=DWH;") qry = "select location from dim_location" Try oledbConnection.Open() '<-- interpreter bails here 'otherS

我正在尝试使用OledbConnection对象连接到Informix数据库, 在ASP.NET脚本中使用VB我的代码如下:

Dim oledbConnection = New OleDbConnection("Provider=ifxoledbc;DSN=DWH;")
qry = "select location from dim_location"
Try
   oledbConnection.Open()  '<-- interpreter bails here
   'otherStuff
   oledbConnection.Close()
Catch ex As Exception
   Return ex.Message()
End Try
Dim-oledbConnection=New-oledbConnection(“Provider=ifxoledbc;DSN=DWH;”)
qry=“从尺寸位置选择位置”
尝试

下面是在informix上创建OLEDB连接的简单语法。您可能需要将代码段
更改为新的OLEDBC连接(“Provider=ifxoledbc;DSN=DWH;”)
以匹配以下内容

 Provider=any oledb provider name;OledbKey1=someValue;OledbKey2=someValue;

希望有帮助

这仅仅是一个建议,你应该把评论放在评论部分,这远远不能回答我的问题