Oracle.ManagedDataAccess.Core beta2 Oracle.ManagedDataAccess.Types.TimeStamp InvalidCastException Er — oracle-tech

    Forum Stats

  • 3,716,127 Users
  • 2,242,960 Discussions
  • 7,845,836 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Oracle.ManagedDataAccess.Core beta2 Oracle.ManagedDataAccess.Types.TimeStamp InvalidCastException Er

93aec6ef-f91d-45ba-95c5-35c685adb506
edited August 2018 in ODP.NET

When using the Oracle.ManagedDataAccess.Core(1.12.0-beta2) 

I get the following error.   It goes into the Catch block, during the Open connection.

The below is what ends in Exception.InnerException (converted to String). 

"System.TypeInitializationException: The type initializer for 'OracleInternal.ServiceObjects.OracleConnectionImpl' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Oracle.ManagedDataAccess.Types.TimeStamp' threw an exception. ---> System.InvalidCastException: Object must implement IConvertible.   at OracleInternal.Common.OracleTimeZone.GetInstance()   at Oracle.ManagedDataAccess.Types.TimeStamp..cctor()   --- End of inner exception stack trace ---   at Oracle.ManagedDataAccess.Types.TimeStamp.InitializelatestTZversion()   at OracleInternal.ServiceObjects.OracleConnectionImpl..cctor()   --- End of inner exception stack trace ---   at OracleInternal.ServiceObjects.OracleConnectionImpl..ctor()"

Is anyone else seeing this error?

Answers

This discussion has been closed.