I think you either need to have ODP.NET installed or Oracle Instant Client 
in your PATH or BIN directory.

RP

On Thursday, March 20, 2014 7:57:21 PM UTC, Delbert Matlock wrote:
>
> Is it possible to use the OracleManagedDataClientDriver from NHibernate 
> 4.0.0 alpha1 with a NuGet installed version of NHibernate 3.3.3?  It looks 
> like it would work but I'm getting stuck when trying to stand up the 
> ISession.
>
> Here is what I did trying to make this work:
>
> 1. Installed the "odp.net.managed" NuGet package.
>
> 2. Copied the source for OracleManagedDataClientDriver.cs into the same 
> project where I'm creating my session factory.
>
> 3. Modified my session factory so that it reads 
> 'Fluently.Configure().Database(OracleDataClientConfiguration.Oracle10.Driver<OracleManagedDataClientDriver>()[rest
>  
> of the config line]'.
>
> Everything complies fine but when the session factory tries to stand up I 
> always end up with the following exception: NHibernate.HibernateException: 
> Could not create the driver from 
> NHibernate.Driver.OracleManagedDataClientDriver, [redacted], 
> Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. ---> 
> System.Reflection.TargetInvocationException: Exception has been thrown by 
> the target of an invocation. ---> System.ArgumentException: Unable to find 
> the requested .Net Framework Data Provider.  It may not be installed.
>
> This application was previously running with the 32bit Oracle.DataAccess 
> driver but I hope to convert over to the managed driver so that the 
> application can be switched to 64bit mode.
>
> Am I fighting a lost cause here?  Once NHibernate 4.0.0 goes final I can 
> go that way but as this is for a production application I'm not about to 
> deploy "alpha" code.
>
> Thanks.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to