3),但是在安装中没有机器级别的选项。我将Oracle.DataAccess和Oracle.web放入GAC中,然后将DBProviderFactories添加到Machine.config.config.config..ut我仍然遇到了此错误。
有人尝试使用IIS服务器的ODAC版本
无法加载文件或汇编'oracle.dataAccess, publicKeyToken = 89B483F429C47342'或它的依赖项之一
<system.data>
<DbProviderFactories>
<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.122.18.3, Culture=neutral, PublicKeyToken=89b483f429c47342" />
</DbProviderFactories>
</system.data>
我在web.config上添加依赖设备,并在bin文件夹下复制oracle.dataaccess.dll,它起作用
<dependentAssembly>
<assemblyIdentity name="Oracle.DataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.121.2.0" newVersion="4.122.18.3" />
</dependentAssembly>