« Feels good to have smart colleagues | Perfect reference to get started with EntityFramework 4.1 »
Could not create the driver from NHibernate.Driver.OracleDataClientDriver error in NHibernate
by Vahid 5. April 2011 03:59
I have been playing with Nhibernate to connect to an oracle database using ODP.NET. first POC project which was a console application worked properly but as soon as I moved the codes to a Web Application for POC I started getting “Could not create the driver from NHibernate.Driver.OracleDataClientDriver” error. scratching my head and think about the failure where the same exact code was running in the Console application, tried so many ways but no result. everything was in place, Oracle reference, Nhibernate reference and configuration etc…
finally I just thought of giving a shot to marking the Oracle.DataAccess database to be copied locally in the property window and surprisingly it started working. now don’t ask me why but if you face the same scenario just mark your set Copy Locally property of Oracle.DataAccess to true.
Related posts
Solution for CS0016 Error on ASP.NET and IIS7if you are also new to IIS7 like me and have tried to deploy an ASP.net web site to IIS7, you must h…Managing Multiple Configuration File For Different Application Life cycles In .Net Applications All of us have already dealt with the problem of promoting configuration files in different applic…Could not load file or assembly ‘Oracle.DataAccess’ or one of its dependencies. An attempt was made to load a program with an incorrect formatI had deploying an asp.net application to a windows 2008 64bit server. the application uses od…
Powered by BlogEngine.NET 1.6.0.0
Theme by Mads Kristensen