I'm trying to connect to a AS/400 server using the .net classes. Also, I'm running a 64 bit version of Windows 7. The reference is to IBM.Data.DB.iSeries using the following code:
var conn = new iDB2Connection("DataSource=22.214.171.124;UserID=xxx;Password=xxx; DataCompression=True;");
The problem is that I get these exceptions:
Running 64 bit: "The provider cannot run in 64-bit mode."
Running 32 bit: An unexpected exception occurred. Type: System.DllNotFoundException, Message: Unable to load DLL 'cwbdc.dll': The operating system cannot run . (Exception from HRESULT: 0x800700B6).
I have tried reinstalling the client access but it still didn't work. However, I can use OBDC to connect to AS/400.
January 2, 2014 9:25 PM
January 3, 2014 1:34 AM