如何在机器中安装ODAC 11.2和12.2?

问题描述 投票:0回答:1

我在不同的项目中工作,我的一个项目是使用Visual Studio 2010,另一个使用VS 2017,另一个使用2015。

对于VS 2010我安装了ODACT with ODT 11.2工作正常。但是VS 2015和2017需要ODAC with ODT 12.2+所以我已经在我的机器中安装了12.2并且在VS 2010解决方案之后edmx更新完全没有工作。

这是我得到的Visual Studio活动日志

 <record>330</record>
    <time>2019/04/03 08:11:41.598</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Oracle Developer Tools for Visual Studio]</description>
    <guid>{D601BB95-E404-4A8E-9F24-5C1A462426CE}</guid>
  </entry>
  <entry>
    <record>331</record>
    <time>2019/04/03 08:11:41.598</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [Oracle Developer Tools for Visual Studio]</description>
    <guid>{D601BB95-E404-4A8E-9F24-5C1A462426CE}</guid>
    <hr>80070002</hr>
    <errorinfo>Could not load file or assembly 'Oracle.VsDevTools.10.0, Version=4.112.3.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.</errorinfo>
  </entry>
  <entry>
    <record>332</record>
    <time>2019/04/03 08:11:41.614</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [Oracle Developer Tools for Visual Studio]</description>
    <guid>{D601BB95-E404-4A8E-9F24-5C1A462426CE}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo>Could not load file or assembly 'Oracle.VsDevTools.10.0, Version=4.112.3.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.</errorinfo>
  </entry>
  <entry>

我已经尝试了几种方法来解决这个问题。

  1. 两个安装使用不同的oracle home
  2. odp.net中删除了GAC相关政策。
  3. 编辑machine.config并改变了odac版本

但没有任何工作。

注意:在两个安装中,我都使用了机器安装。

oracle visual-studio odp.net odac odt
1个回答
0
投票

在非机器范围内安装12.2+版本。

Oracle.ManagedDataAccess.Client移动到GAC。(以管理员身份运行,打开VS 2010命令提示符。然后使用gacutil -i“oracle managedaccess.client dll的路径”)

打开命令提示符cd到主目录路径(odac 12.2安装路径)。示例:

C:\app\client\Arunprasanth\product\12.1.0\client_1\odp.net\managed\x86>

然后运行以下命令

raProvCfg.exe /action:config /product:odpm /frameworkversion:v4.0.30319 /productversion:4.121.2.0

注意:上面的步骤将创建一个进入machine.config的条目。

那么现在你可以在VS 2010和2015中使用ODT

© www.soinside.com 2019 - 2024. All rights reserved.