Forum Stats

  • 3,855,378 Users
  • 2,264,500 Discussions
  • 7,905,980 Comments

Discussions

Repeated "Failed to fix the configuration" errors - please upgrade to version 19.3.3

Christian.Shay -Oracle
Christian.Shay -Oracle Posts: 2,199 Employee

Hi all,

TLDR: Please upgrade to version 19.3.3 to resolve this issue:


A recent change to the Visual Studio installer caused our own installation to break. The result is that with ODT version 19.3.2 and 19.3.1, each time you launch Visual Studio the configuration wizard will launch and will fail with a "Failed to fix the configuration" error, and you won't be able to use ODT.

We have released version 19.3.3 of ODT and we recommend that you upgrade to fix this problem. The only change in version 19.3.3 vs. version 19.3.2 is this fix to our installer.

https://www.oracle.com/database/technologies/dotnet-odtvsix-vs2019-downloads.html

If you cannot upgrade to version 19.3.3, here is a workaround:

1) Close all open Visual Studio 2019 instances

2) Locate the devenv.exe.config file for Visual Studio 2019.

3) Make a copy of devenv.exe.config to protect you from potentially having to reinstall Visual Studio if a mistake is made.

4) In devenv.exe.config:

a) Locate the <system.data><DbProviderFactories> section:

b) Add:

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

<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" />


5) In the Windows start menu, locate the Visual Studio 2019 folder and open a "Developer Command Prompt for VS 2019" with admin privileges.

6) run "devenv /updateconfiguration"

7) Open Visual Studio 2019

This discussion has been closed.