Oracle Data Provider for .NET Was Installed Without Enterprise-wide Customization

I reinstalled Oracle ODAC but keep getting the following error

"The Oracle Data Provider for.NET was installed without network-wide configuration. However, the version of Oracle Data Provider for .NET was found in the global assembly cache, which may not be compatible. Remove the Oracle Data Provider for.Net from the global assembly Visual Studio restart cache "

Should I worry about this warning?

+6
source share
1 answer

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

you need to use gacutil /l to list all the builds https://docs.microsoft.com/en-us/dotnet/framework/tools/gacutil-exe-gac-tool

Then delete all entries containing the oracle:

 gacutil /u [assembly name] 

You can get the assembly name from the list earlier. Just use the term before the first comma (e.g. Oracle.ManagedDataAccess )

After that, I opened Visual Studio and the error message disappeared. It so happened that there were entries in machine.config that I needed to delete. Which one you need to remove, an error is displayed when debugging the code.

Hope this helps.

0
source

Source: https://habr.com/ru/post/1014678/


All Articles