PsgCommand Casting Problem

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
Galina

PsgCommand Casting Problem

Post by Galina » Tue 04 Apr 2006 15:54

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

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Wed 05 Apr 2006 08:18

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.

Post Reply