Oracle Developer Tools for Visual Studio 2019 無法正確安裝



在VS 2019中,ODT安装带有扩展名,而不是像以前的版本那样作为安装文件。因此,从VS 2017升级的EF 6使用MVC项目edmx文件在扩展安装后不显示数据库图,空白黑页,"编辑xml"选项等。

如果您意识到错误列表中存在错误!

The ADO.NET provider with invariant name 'Oracle.ManagedDataAccess.Client' is either not registered in the machine or application config file, or could not be loaded. See the inner exception for details

我检查了解决方案app.config,web.config等中的所有配置文件,一切看起来都不错,有关"Oracle.ManagedDataAccess.Client"的所有标签和值都已定义且正确!

几周后,我决定仅将 VS 2017 用于此项目,再次安装 VS 2017 并通过安装文件为 VS 2017 安装 ODT。然后我找到了一个关于这个问题的网站。

它说;

  • 关闭所有 VS 实例
  • 查找 VS devenev.exe.config 文件
  • 使用文本编辑器打开它
  • 将所有"Oracle"包含的设置从工作端复制到非工作端

就是这样!

我从VS 2017的配置复制到VS 2019 devenev.exe.config文件中的内容;

(根据扩展名文件更改了DLL的路径(

在<程序集绑定>标记

<dependentAssembly>
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
<codeBase version="4.122.19.1" href="C:Program Files (x86)Microsoft Visual Studio2019ProfessionalCommon7IDEExtensionsm3m25bey.i3vAssembliesDataProvidersOracle.ManagedDataAccess.dll" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Oracle.ManagedDataAccess.EntityFramework" publicKeyToken="89b483f429c47342" culture="neutral" />
<codeBase version="6.122.19.1" href="C:Program Files (x86)Microsoft Visual Studio2019ProfessionalCommon7IDEExtensionsm3m25bey.i3vAssembliesDataProvidersOracle.ManagedDataAccess.EntityFramework.dll" />
</dependentAssembly>    

还有

in标记

<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.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342" /> 

最新更新