[Mono-aspnet-list] ASP.NET MVC 3
Hello guys, Are you planning to incorporate ASP.NET MVC 3 into mono? I'd love to contribute. My github account is andreazevedo Thank you, Andre ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
Re: [Mono-aspnet-list] FluentNHibernate InvalidCastException at creating SessionFactory
Ok, it seems I resolved this problem by myself. This is what I found (maybe it will help someone): Going deeper to NHibernate sources I noticed that only when *setting.IsKeywordsImportEnabled* is set the crashing part is fired (SchemaMetadataUpdater.Update(this)). There the SuppliedConnectionProviderConnectionHelper tries to cast some type to DbConnection, this type is probably NpgsqlConnection class which doesn't derive from DbConnection, however it implements IDbConnection. How to disable IsKeywordImportEnabled? sessionFactory = Fluently.Configure() .Database(databaseConfiguration) .Mappings(m = { m.FluentMappings.AddFromAssemblyOfModels.MyClass(); }) *.ExposeConfiguration(c = { c.SetProperty(Environment.Hbm2ddlKeyWords, none); })* .BuildSessionFactory(); Actually I don't know what this setting will cause, but retrieving and inserting entities seem to work fine. -- View this message in context: http://mono.1490590.n4.nabble.com/FluentNHibernate-InvalidCastException-at-creating-SessionFactory-tp3770661p3771120.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
Re: [Mono-aspnet-list] FluentNHibernate InvalidCastException at creating SessionFactory
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. ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list