Which version of Npgsql ? Did you try updating Npgsql to latest version ? 2009/7/31 Paul <[email protected]>: > > After I upgraded my system to use NHibernate 2.1, I got that error on > Burrow : > > InvalidCastException: Cannot convert object 'Npgsql.NpgsqlConnection' > to 'System.Data.Common.DbConnection'... > > I´m using NH with Postgres (Npgsql) ... > My config: > > <property > name="connection.provider">NHibernate.Connection.DriverConnectionProvider</ > property> > <property > name="connection.driver_class">NHibernate.Driver.NpgsqlDriver</ > property> > <property > name="connection.connection_string">Server=x;Port=5432;User > Id=x;Password=x;Database=x; CommandTimeout=600;</property> > <property name="connection.isolation">ReadCommitted</property> > <property name="dialect">NHibernate.Dialect.PostgreSQLDialect</ > property> > <property > name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, > NHibernate.ByteCode.Castle</property> > > <property name="show_sql">true</property> > <property name="connection.release_mode">auto</property> > > > >
-- Jozef --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NHibernate Contrib - Development Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com.ar/group/nhcdevs?hl=en -~----------~----~----~----~------~----~------~--~---
