NHibernate - could not find (oracle) dialect in configuration

nhibernate, oracle

Solution

There is no NHibernate.Dialect.Oracle9Dialect dialect in the NHibernate assembly.

There is a NHibernate.Dialect.Oracle9iDialect.

Check that your NHibernate config file is being loaded correctly. Use something like:

onfiguration config = new Configuration().Configure("hibernate.cfg.xml").

This is assuming your NHibernate configuration file is called hibernate.cfg.xml and is at the root of your application.

Problem

I've got following hibernate.cfg.xml ``` <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > <session-factory> <property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property> <property name="connection.connection_string"> User ID=user;Password=password;Data Source=database </property> <property name="show_sql">false</property> <property name="dialect">NHibernate.Dialect.Oracle9Dialect</property> <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> </session-factory> ``` Now I receive following error: failed: NHibernate.MappingException : Could not compile the mapping document: Mob.Icecube.Data.NH.Mappings.Customer.hbm.xml ----> System.InvalidOperationException : Could not find the dialect in the configuration Can anyone help me out why he cannot find the driver? Some extra info... It's running at the moment only inside a UnitTest application I added the NHibernate and System.Data.OracleClient to the references of the project Using the latest NHibernate version (2.2 beta) Thanks in advance

Original source