Hi Macko, Did you find answer to your question? I am also using Nhibernate with Oracle. While deploying application on 64-bit machine, i am facing exactly same issue which you did. Any solution for this?
Thanks, Sandesh On Thursday, June 9, 2011 7:56:02 PM UTC+5:30, Macko wrote: > > 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
