AS/400 iSeries code exceptions

62,205 pts.
Tags:
AS/400
Code Exceptions
iSeries
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=111.111.111.111;UserID=xxx;Password=xxx; DataCompression=True;");
conn.Open();
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.
ASKED: January 2, 2014  9:25 PM
UPDATED: January 3, 2014  1:34 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta

    Running 64 bit: "The provider cannot run in 64-bit mode."

    You need to install the 64-bit version of iSeries Access if you want it to run on a 64-bit Windows system.

    If you really are using "Client Access", then you're trying to use client code that is simply too old. You need to install at least "iSeries Access" or "System i Access" for Windows 64-bit. Client Access is not going to be successful on a newer Windows 64-bit OS. If "Client Access" is actually required, then you'll need to install it on an older Windows OS version.

    Tom

    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following