3
votes

I recently installed Oracle Developer Tools for Visual Studio. Now I'm getting this error when I open Visual Studio. Can someone else explain me hoe to get rid of this message.

Microsoft Visual Studio

Oracle Data Provider for .NET has been installed without a machine-wide configuration. However, a version of Oracle Data Provider for .NET has been detected in the Global Assembly Cache which may be incompatible. Please remove Oracle Data Provider for .Net from Global Assembly Cache an restart Visual Studio

[OK]

2

2 Answers

2
votes

Do not forget C:\Windows\Microsoft.NET\assembly folders. I've solved problem by deleteing folders

  • Oracle.ManagedDataAccess (GAC_64 folder)
  • Oracle.DataAccess.resources (GAC_MSIL folder)
  • Oracle.DataAccess (GAC_32 folder)
1
votes

I did a lot of stuff which didn't helped. But one thing did.: open visual Studio Command prompt in admin mode https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs

there you have to use gacutil /l to list all assemblies

Then delete every entry which includes oracle:

gacutil /u [assembly name]

you can get the assembly name out of the list before. Just use the term before the first comma (e.g. Oracle.ManagedDataAccess)

After that I opened Visual Studio and the error message disappeared. What happened was, that in the machine.config were entries which I needed to delete. Which one you have to delete shows the error while you debugg the code.

Hope it will help.