I'm not an Oracle guy and need to use it from Visual Studio. I installed Oracle Data Tools for Visual Studio 2015 but can't get by some odd error messages. The first time I start VS and try to add a new connection (any connection), I get the message:
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 the Global Assembly Cache and restart Visual Studio.
This is odd, because I just did exactly what the message said. The next time I started VS, the error popped up again.
If I OK that message, I get another one:
Failed to find the default tnsnames.ora. Could not load type OracleInternal.Common.ConfigBaseClass' from assembly Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=Neutral, PublicKeyToken=89b483f429c47342
I'm not at all sure what that means.
Any ideas out there?
UPDATES:
Didn't create tnsnames.ora (don't know how to). Did I miss a step in installation? (Don't remember that being mentioned). In the machine config I have:
<section name="oracle.dataaccess.client" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
Oracle is not found in the user.config file. the dll info:
C:\Program Files (x86)\Microsoft Visual Studio 14.0>gacutil /l Oracle.ManagedDat
aAccess
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.0
Copyright (c) Microsoft Corporation. All rights reserved.
The Global Assembly Cache contains the following assemblies:
Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=8
9b483f429c47342, processorArchitecture=MSIL
No .NET config file at this point. in VS I'm just trying to connect with server Explorer
oracle.dataaccess
but query GAC for "Oracle. ManagedDataAccess" - Wernfried Domscheit/configuration/oracle.manageddataaccess.client/version/settings/setting/@name=TNS_ADMIN
in your .NET config file? Does it show the folder where yourtnsnames.ora
file is stored. In order to create atnsnames.ora
file, ask your DBA. - Wernfried Domscheit