title: ODP.Net Driver Throwing Exception on .NET Core 5.0
body: <p>I am trying to port my database application from .NET Core 3.1 to .NET Core 5.0.</p>
  <p>When running the following code,</p>
  <pre><code>        public async Task&lt;List&lt;T&gt;&gt; LoadDataFromSQL&lt;T, U&gt;(string sql, U parameters, string connectionStringName)
          {
              using (IDbConnection connection = new OracleConnection(await GetConnectionString()))
              {
                  var rows = await connection.QueryAsync&lt;T&gt;(sql,
                                                            parameters,
                                                            commandType: CommandType.Text);
                  return rows.ToList();
              }
          } 
  </code></pre>
  <p>I get this exception:</p>
  <blockquote>
  <p>&quot;System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.\r\n ---&gt; System.TypeInitializationException: The type initializer for 'OracleInternal.ServiceObjects.OracleConnectionImpl' threw an exception.\r\n ---&gt; System.TypeInitializationException: The type initializer for 'Oracle.ManagedDataAccess.Types.TimeStamp' threw an exception.\r\n ---&gt; System.NotSupportedException: BinaryFormatter serialization and deserialization are disabled within this application. See <a href="https://aka.ms/binaryformatter" rel="noreferrer">https://aka.ms/binaryformatter</a> for more information.\r\n   at OracleInternal.Common.OracleTimeZone.GetInstance()\r\n   at Oracle.ManagedDataAccess.Types.TimeStamp..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at Oracle.ManagedDataAccess.Types.TimeStamp.InitializelatestTZversion()\r\n   at OracleInternal.ServiceObjects.OracleConnectionImpl..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at OracleInternal.ServiceObjects.OracleConnectionImpl..ctor()\r\n   --- End of inner except
  ion stack trace ---\r\n&quot;</p>
  </blockquote>
  <p>Is is possible to work around this from my application?</p>
  <p>I am using the latest version of Oracle.ManagedDataAccess.Core 2.19.91, release on 10/22/2020.  Also, I am using Dapper 2.0.35.</p>