I am using NHibernate. On all our developer machines, all the unit tests run fine, but on our test server, none of the tests run.
In a nutshell, I always get the following error:
---> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.DllNotFoundException : Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
NHibernate.ADOException : Could not execute query ----> System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.DllNotFoundException : Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I have tried with both the OracleClientDriver and OracleClientDataDriver.
I know this is more of an Oracle question, but I think my problem may be related to how NHibernate uses ADO.NET?
I have tried the following, as per all the (minimal) documentation I can find:
Setting Read and Execute access to the account running the tests.
Setting the ORACLE_HOME environment variable.
The funny thing is that it works fine when I run the tests manually from the NUnitGUI.
FYI: The unit tests are being run from NAnt as part of a CruiseControl build.
Does anyone else have any suggestions as to how to start to resolve this one?
Thanks in advance, (hopefully!)
|