Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle Developer Tools for Visual Studio 2019 can not be installed properly

In VS 2019, ODT install with an extension, not as a setup file like previous version. So, from VS 2017 upgraded EF 6 used MVC project edmx file doesn't show database diagram after extension installation, blank black page, "edit xml" option etc. that's all.

And an error in Error List if you realize!

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

I checked all config files in solution app.config, web.config, etc. everything looks good, all tags and values about "Oracle.ManagedDataAccess.Client" already defined and correct!

like image 209
Furkan Ekinci Avatar asked May 21 '20 08:05

Furkan Ekinci


People also ask

How to uninstall Oracle Developer Tools for Visual Studio?

Uninstalling Oracle Developer ToolsOpen the Windows Control Panel. Double-click the Add or Remove Programs icon. Select Oracle Developer Tools for Visual Studio . NET from the list of programs, and click the Remove button.

What is Oracle Developer Tools for Visual Studio?

Oracle Developer Tools for Visual Studio is a free Visual Studio extension that allows developers to connect to Oracle databases, browse and modify Oracle schema objects and data, edit and debug PL/SQL, generate SQL scripts, and more.

Does Visual Studio support Oracle?

Oracle Autonomous Database IntegrationYou can quickly create Always Free Autonomous Database instances from Visual Studio, automatically download credentials files and be connected to the database to work on code within minutes.


1 Answers

After some weeks, I decided to use back VS 2017 only for this project, installed VS 2017 again and ODT for VS 2017 by setup file. Then I found a web site about this problem.

It says;

  • Close all VS instances
  • Find VS devenev.exe.config file
  • Open it with text editor
  • Copy all 'Oracle' contains settings from working side to not working side

That's it!

What I copied into VS 2019 devenev.exe.config file from VS 2017's config;

(changed dll's paths according extension file)

in < assemblyBinding > tag

  <dependentAssembly>
    <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
    <codeBase version="4.122.19.1" href="C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\m3m25bey.i3v\Assemblies\DataProviders\Oracle.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 Studio\2019\Professional\Common7\IDE\Extensions\m3m25bey.i3v\Assemblies\DataProviders\Oracle.ManagedDataAccess.EntityFramework.dll" />
  </dependentAssembly>    

and also

in < DbProviderFactories > tag

  <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" /> 
like image 79
Furkan Ekinci Avatar answered Oct 18 '22 15:10

Furkan Ekinci