Could not instantiate dialect class NHibernate.Dialect.VistaDBDialect

May 4, 2008 at 1:48 PM
Hello,

I wanna use ActiveRecord with VistaDB. I've seen there is no official driver or dialect for VistaDB.
Therefore I tried this one from CodePlex. But every time I get this NHibernate-Exception: Could not instantiate dialect class NHibernate.Dialect.VistaDBDialect

I've built the assambly from the source. After I've added the NHibernate.VistaDBDriver to my project and linked it in my appconfig.xml

<?xml version="1.0" encoding="utf-8" ?>

<activerecord>

<config>
<add
key="hibernate.connection.driver_class"
value="NHibernate.Driver.VistaDBDriver" />
<add
key="hibernate.dialect"
value="NHibernate.Dialect.VistaDBDialect" />
<add
key="hibernate.connection.provider"
value="NHibernate.Connection.DriverConnectionProvider" />
<add
key="hibernate.connection.connection_string"
value="Data Source=data/AccountingManager.vdb3" />
</config>

</activerecord>

What I did wrong? Can anyone send me a working project including all the assemblys and sources?

Thank you in advance.
Kindly regards,
Danny
May 5, 2008 at 11:00 AM
I've solved my problem.

The right appconfig.xml content for VistaDB looks like the following rows...

<config>
<add
key="hibernate.dialect"
value="NHibernate.Dialect.VistaDBDialect,NHibernate.VistaDBDriver"
/>
<add
key="hibernate.connection.driver_class"
value="NHibernate.Driver.VistaDBDriver,NHibernate.VistaDBDriver"
/>
<add
key="hibernate.connection.connection_string"
value="Data Source=C:\test.vdb3;Open Mode=NonExclusiveReadWrite"
/>
</config>