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=126.96.36.199;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.