I'm trying to upgrade my C# projects to use to use the latest ODAC 12c release for which I downloaded the ODAC 12.1 xcopy for Windows. The installation was fine but the problem started when I tried executing a unit test.
My test case fails on connection.Open()
. The sample is below:
OracleConnection con = new OracleConnection();
con.ConnectionString = @"User Id = test, Password = test; Data Source = test";
con.Open();
Unfortunately, there is no exception message and the Stack Trace isn't of much help either:
Result StackTrace:
at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck, Int32 isRecoverable)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
at Oracle.DataAccess.Client.OracleConnection.Open()
at MyProgram.Program.GetDetails()
When I tried debugging, an error message box popped up at the start of execution stating: The entry of procedure ons_init_wconfig_ctx point is not found in the dynamic link library oraons.dll.
I wonder if there's something missing.
Oracle DB version: 11.2.0.3.0 Oracle Client version: 11.2.0.3.0 ODAC version: 12.1.0.1.2