Page 1 of 1

PsgCommand Casting Problem

Posted: Tue 04 Apr 2006 15:54
by Galina
I'm using a Web Service to get Data from PostgreSQL DB. In the local PC it work fine. Once in the Test Server I am getting the following message

"Unable to cast object of type 'CoreLab.PostgreSql.PgSqlCommand' to type 'System.Data.Common.DbCommand'."

Any help would be appreciate

Thanks
Galina

Posted: Wed 05 Apr 2006 08:18
by Alexey
Seemingly, you have CoreLab.PostgreSql.dll for .NET Framework 1.x on the Test Server. Please check and substitute it with CoreLab.PostgreSql.dll for .NET Framework 2.0.