My question is remarkably similar to this: Oracle .Net ManagedDataAccess Error: Could not load type 'OracleInternal.Common.ConfigBaseClass' from assembly
However, there are two reasons why I'm not going with the consensus.
1) I'm not sure it would work. I don't know a lot about the GAC, but I looked in the assemblies folder and there isn't a copy of Oracle.ManagedDataAccess with version 4.121.2.0. All the Oracle.ManagedDataAccess assemblies begin with 2.
2) I'm only getting this error on the production server, and I (as a lowly dev) don't want to take any action on the production server that could affect the multitude of applications it houses.
This is my stack trace:
Failure: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.TypeInitializationException: The type initializer for 'Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices' threw an exception.
---> System.TypeLoadException: Could not load type 'OracleInternal.Common.ConfigBaseClass' from assembly 'Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342'.
at Oracle.ManagedDataAccess.EntityFramework.EntityFrameworkProviderSettings.Oracle.ManagedDataAccess.EntityFramework.EFProviderSettings.IEFProviderSettings.get_TracingEnabled()
at Oracle.ManagedDataAccess.EntityFramework.EFProviderSettings.InitializeProviderSettings[T]()
at Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices..ctor()
at Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices..cctor()
--- End of inner exception stack trace ---