I installed the latest Oracle.ManagedDataAccess v23.6.1 from NuGet, when I attempt to run my app on the server, the app creashes with the error Could not load file or assembly 'Oracle.ManagedDataAccess, Version=4.122.21.1
. The version of the DLL that’s installed is v4.122.23.1 and that’s what is referenced in the web.config, I’ve searched in every conceivable config file I could think of and cannot find a reference to v4.122.21.1. What is going on here? Any one have an idea?
This is the entry in my web.config:
<DbProviderFactories>
<remove invariant="Oracle.ManagedDataAccess.Client" />
<add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.23.1, Culture=neutral, PublicKeyToken=89b483f429c47342" />
</DbProviderFactories>
When I installed the package, Visual Studio 2017 also added this to the web.config:
<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.122.23.1, Culture=neutral, PublicKeyToken=89b483f429c47342" />
But that section generates a 500 error on the server, I remove it and the app runs.
Plan Voyage Ezzahra wish you good luck
https://planvoyages.com/
user28568981 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.