Hello forum, I have got a trouble!!!
I'm trying connect to an Oracle Database, and I use this properties in order to configure NHibernate correctly. I don't want use Microsoft Oracle Driver (NHibernate.Driver.OracleClientDriver), instead of this, I want use Native .NET Oracle Driver (ODP.NET installed correctly, NHibernate.Driver.Oracle
DataClientDriver) -->
Code:
props["hibernate.connection.provider"] = "NHibernate.Connection.DriverConnectionProvider";
props["hibernate.dialect"] = "NHibernate.Dialect.OracleDialect";
props["hibernate.connection.driver_class" ] = "NHibernate.Driver.OracleDataClientDriver" ;
props["hibernate.connection.connection_string"] = "SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.2)(PORT=1500))(CONNECT_DATA=(SERVICE_NAME=webshop)));uid=user;pwd=password;";
props["hibernate.show_sql"] = true;
when I execute the follow code:
Code:
this.session_factory = this.cfg.BuildSessionFactory();
crashes an exception with message:
Quote:
Could not create the driver from NHibernate.Driver.OracleDataClientDriver.
I have got installed correctly ODP.NET and I've added Oracle.DataAccess into References Project.
Can you help me please?