SYMPTOMS
...
In GinesysReport module , there is an option to test Ginesys Data Source connection from Server tab. Sometime users may face a problem while they are trying test Data Source of Ginesys . The below error message appeared on screen.
...
Info |
---|
Further Observation & Action taken :
|
CAUSE
...
Duplicate entries exist for 'Oracle.DataAccess.Client' under DBProviderFactories section in .NET Framework 4 configuration (machine.config), entries having mention invariant="Oracle.DataAccess.Client
. When the program tries to load the information of DB Providers which is mentioned in machine.config it detects the duplicate provider entries.
...
Sample file path:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
Area to look into:DbProviderFactories
section.
RESOLUTION
...
Note |
---|
Before modifying the machine.config file keep a backup of existing machine.config file. |
Open the machine.config file from the path <System Drive>\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config.
Then find the <DbProviderFactories> section under <system.data> tag where we can see duplicate entries of “Oracle.DataAccess.Client“ with various version. Remove one entry which is older with respect to version ( 4.121.1.0 & 4.121.2.0) & keep the current version. Here we will remove the version 4.121.1.0 .
Then save the machine.config file & check the Data Source connection again.
...
Code Block |
---|
<system.data> <DbProviderFactories> <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.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/> <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.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" /> </DbProviderFactories> </system.data> |
RELATED ARTICLE
...