Hello,

I'm setting simple project to connect to Oracle 11 database but when i
try run simple query i'm getting exception:


app.config nh section:

<hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2" >
    <session-factory name="NHibernate.Test">
      <property name="dialect">NHibernate.Dialect.Oracle10gDialect</
property>
      <property
name="connection.driver_class">NHibernate.Driver.OracleDataClientDriver</
property>
      <property name="connection.connection_string">Data
Source=(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = bla.com)(PORT
= 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME =
ECCDV1)));User Id=user1;Password=xxx;</property>
      <property name="adonet.batch_size">20</property>
      <property name="show_sql">true</property>

      <!--<property name="use_outer_join">true</property>-->
      <property name="command_timeout">60</property>
      <property name="query.substitutions">true 1, false 0, yes 'Y',
no 'N'</property>
      <mapping assembly="NH.Domain"/>
    </session-factory>
  </hibernate-configuration>

exception:
The type initializer for 'Oracle.DataAccess.Client.OracleConnection'
threw an exception.
The provider is not compatible with the version of Oracle client

in the app folder there's Oracle.DataAccess.dll (v4.112)
and OraOps11w.dll

How the hell can I make it to run?

---
Regards,
 Macko

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to