[Mono-aspnet-list] FluentNHibernate InvalidCastException at creating SessionFactory

gajcz gajczewski at gmail.com
Fri Aug 26 23:58:12 EDT 2011


Ok, I got it. *mono-data-postgresql doesn't contain new versions of Npgsql*
since they break backward compatibility. So after few hours all I had to do
was to *update Npgsql*, so:

1. download Npgsql 2.0.11.0 (which I use on Windows) from 
http://pgfoundry.org/projects/npgsql/ here 
2. add Npgsql to GAC (gacutil -i /Mono2.0/bin/Npgsql.dll)
3. remove Npgsql 4.0.0.0 from Gac (gacutil -u Npgsql,Version=4.0.0.0) -
because my application always got 'the newest' version no matter what I set
in DbProviderFactories section.

--
View this message in context: http://mono.1490590.n4.nabble.com/FluentNHibernate-InvalidCastException-at-creating-SessionFactory-tp3770661p3772489.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list