Link to home
Start Free TrialLog in
Avatar of akohan
akohan

asked on

.NET referecnes (IBM)


Hello,

I need to make an application talk to AS/400 and I'm using IBM.Data.DB2.iSeries however, I don't know where I can get the DLL or library from.

Is it free? and where can I get it?

Regards,
ak
Avatar of morgulo
morgulo
Flag of Poland image

Avatar of akohan
akohan

ASKER



Hi thanks for the link... I got it work and now my code runs but the problem is that when I run a query
I get


System.InvalidCastException was unhandled
  Message=The data type returned is currently not supported by the provider.

Do I need to update it or any service pack related to solve this issue?

Thanks.
Could you get more information? Show me code where you get an exception.
Avatar of akohan

ASKER


Sure.

Error happens on line 6 where Fill() method is called.




try
            {
                db.Open();

                adpt.SelectCommand = new iDB2Command(txtSQL.Text, CommandType.Text, db);
                adpt.Fill(ds);

Open in new window

Avatar of akohan

ASKER


could be a service pack problem? do I need to upgrade the library?

ASKER CERTIFIED SOLUTION
Avatar of morgulo
morgulo
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of akohan

ASKER

Thanks.