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.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!