All my unit tests have been running fine for ages until today when I suddenly started to get the following error message when using the
NHibernate.Driver.OracleClientDriver:
Quote:
NHibernate.ADOException: cannot open connection ---> NHibernate.ADOException: Could not create connection from Driver ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Things get even worse when I change to the
NHibernate.Driver.OracleDataClientDriverI then get the even more obtuse error message:
Quote:
NHibernate.Util.ADOExceptionReporter - NHibernate.ADOException: cannot open connection ---> NHibernate.ADOException: Could not create connection from Driver ---> Oracle.DataAccess.Client.OracleException Data provider internal error(-3000)
I can't think what I've changed on the machine for this to happen, but no major changes or installations.
I have rebooted several times. I get the same errors when running from NUnit itself.
Has anyone had this and managed to solve it? Google searches reveal a long list of unanswered posts!
FYI config is as follows:
Code:
<nhibernate>
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
<add key="hibernate.dialect" value="NHibernate.Dialect.Oracle9Dialect" />
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.OracleDataClientDriver" />
<add key="hibernate.connection.connection_string" value="Data Source=LON_PTL3.WORLD;User ID=dmg_test;Password=dmg_test;Pooling=false" />
</nhibernate>