I would like to move from using the discontinued Finsar driver to this new sqlite-dotnet2 one.
However, we're still on .NET 1.1.
I've downloaded the zip, and have replaced my references to NHibernate and the Finsar ADO provider with references to the new (1.0.3) NHibernate DLL and NHibernate.SQLite20.dll i.e. where I previously had:
as references, I've now got:
NHibernate (version 1.0.3)
NHibernate.SQLite20
I've also amended my config file to refer to the new driver class:
Code:
<add key="hibernate.dialect" value="NHibernate.Dialect.SQLiteDialect" />
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.SQLite20Driver" />
<add key="hibernate.query.substitutions" value="true=1;false=0" />
<add key="hibernate.show_sql" value="true" />
<add key="hbm2ddl.auto" value="create" />
However, I'm having problems getting things to run (when previously they ran fine).
When trying to get a session using BuildSessionFactory, I get the error:
Quote:
A first chance exception of type 'System.TypeLoadException' occurred in nhibernate.dll
Additional information: Could not load type 'NHibernate.Driver.SQLite20Driver, NHibernate, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null', check that type and assembly names are correct
Note that I haven't changed the version of ADO.NET - so am I missing something, like this driver only runs with ADO.NET 2.0?
Thanks,
James