I have the following in my web.config file
<DbProviderFactories>
<remove invariant ="Oracle.DataAccess.Client" />
<add name="ODP.NET, Unmanaged Driver"
invariant="Oracle.DataAccess.Client"
description="Oracle Data Provider for .NET, Unmanaged Driver"
type="Oracle.DataAccess.Client.OracleClientFactory,
Oracle.DataAccess, Version=4.121.1.0, Culture=neutral,
PublicKeyToken=89b483f429c47342" />
</DbProviderFactories>
My development machine is using OPD.net version 4.121.1.0 and I have added the reference to that file and specified that it should be copied locally. My deployment server has a much older client 10.2.0.100 and resides in D:\oracle\product\10.2.0\db_1\BIN. Because this application will be deployed to multiple server configurations, I don't want to have to manage each server's Oracle client. I thought that by adding
<remove invariant ="Oracle.DataAccess.Client" />
I would remove any conflicts with other versions except I'm getting...
The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception
After reading, it seems possible to be able to just use the above lines in my web.config and specify which version of ODP.net I want to use, but it isn't working for me. Is what I'm looking for possible, and is this the correct way of doing it?
Thank you. Any help is greatly appreciated.