Hi, I'm new to NHibernate and I'm having what appears to be a very simple problem.
When I attempt to create an ISessionFactory object I receive an exception "Could not create the driver from Oracle.DataAccess.Client", I have added the Oracle.DataAccess.Client.dll file to my project and the file is in the bin directory along with the exe. I have found a few posts on this forum but none of them have answered my problem. This appears to be a very simple problem but I can't solve it. If anyone has any advice at all I would be most gratefull.
My config file looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section
name="hibernate-configuration"
type="System.Configuration.NameValueSectionHandler"
/>
</configSections>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="hibernate.connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="hibernate.dialect">NHibernate.Dialect.OracleDialect</property>
<property name="hibernate.connection.driver_class">Oracle.DataAccess.Client</property>
<property name="hibernate.connection.connection_string">HIDDENproperty>
</session-factory>
</hibernate-configuration>
</configuration>
|