ODP.NET configuration in Web.config

I am adding the odp configuration to the web.config application file. For this, I have a configuration section called "oracle.dataaccess.client". Therefore, I am adding an entry to the section <configSections>. Something like that:

<section name="oracle.dataaccess.client" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

I am not sure about the type parameter. My question is: what value should I use for type parameter? Where can I find him? Oracle Client - 9.2. Frame .net - 1.1

+3
source share
2 answers

ODP 9.2 was released before .Net 2 and did not implement the new interfaces and factories added by this card (in the System.Data.Common namespace)

, ODP System.Data.Common. ADO.net 2.0 10.2.0.2 ODP (, http://www.oracle.com/technology/oramag/oracle/06-winsupp/win06odp.html)

0

Oracle® Data Provider for.NET Developer Guide

Edit:

, , , :

<configuration> <configsections> web.config:

<section name="oracle.dataaccess.client" 
type="System.Data.Common.DbProviderConfigurationHandler, System.Data, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

<system.data> <DbProviderFactories>

<add name="Oracle Data Provider for .NET" 
invariant="Oracle.DataAccess.Client" description="Oracle Data Provider 
for .NET" type="Oracle.DataAccess.Client.OracleClientFactory, 
Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, 
PublicKeyToken=89b483f429c47342" />
+1

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


All Articles