Trying to use "Oracle.DataAccess.Client" for a project:
Code:
Message "Could not create the driver from NHibernate.Driver.OracleDataClientDriver." string
- [NHibernate.HibernateException] {"Could not create the driver from NHibernate.Driver.OracleDataClientDriver."} NHibernate.HibernateException
...
The IDbCommand and IDbConnection implementation in the assembly Oracle.DataAccess could not be found. Ensure that the assembly Oracle.DataAccess is located in the application directory or in the Global Assembly Cache. If the assembly is in the GAC, use <qualifyAssembly/> element in the application configuration file to specify the full name of the assembly.
My cfg file looks like this:
Code:
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="dialect">NHibernate.Dialect.Oracle9Dialect</property>
<property name="connection.driver_class">NHibernate.Driver.[b]OracleDataClientDriver[/b]</property>
<property name="connection.connection_string">CONN_STR$</property>
<property name="show_sql">true</property>
I understand (and it works fine) that for "System.Data.OracleClient" is done like this:
Code:
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="dialect">NHibernate.Dialect.Oracle9Dialect</property>
<property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property>
<property name="connection.connection_string">$CONN_STR$</property>
<property name="show_sql">true</property>
But for ODP.NET (Oracle.DataAccess.Client) - do we use "OracleDataClientDriver" instead of "OracleClientDriver"? (I got this Googling... see this for example:
http://oracleatdotnet.blogspot.com/2007 ... -hood.html)
Why am I getting the exceptions?
Thanks