Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am trying to implement oracle UDT in ASP.NET

i am facing the below error


"Section or group name 'oracle.dataaccess.client' is already defined. Updates to this may only occur at the configuration level where it is defined."

the Configuration i am using is


XML
<?xml version="1.0"?>

<configuration>
  <configSections>
    <sectionGroup name="oracle.dataaccess.client"
                  type="Oracle.DataAccess.Client.OracleSectionGroup, Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342">
      <section name="settings"
               type="Oracle.DataAccess.Client.SettingsSection, Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342" />
      <section name="udtCustomTypeMappings"
               type="Oracle.DataAccess.Client.UdtCustomTypeMappingsSection, Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    </sectionGroup>


    <oracle.dataaccess.client>
      <settings>
        <add name="Customer_Type" value="udtMapping factoryName='Customer_TypeFactory,  Customer_Type, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' typeName='CUSTOMER_OBJECT' schemaName='scott'    dataSource='oracle'" />
        <add name="Customer_Table" value="udtMapping factoryName='Customer_TableFactory,  Customer_Table, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' typeName='CUSTOMER_TABLE' schemaName='scott'  dataSource='oracle'" />
      </settings>
    </oracle.dataaccess.client>
  </configSections>
  <appSettings/>
  <connectionStrings/>


</configuration>



Any thing wrong i am doing here.

thanks in advance.
Posted
Updated 24-Oct-11 22:04pm
v2

1 solution

My guess is that you'll find the 'oracle.dataaccess.client' sectionGroup in the
[Windows directory]\Microsoft.NET\Framework\[Framework Version]\CONFIG\machine.config file.

Adding it to your web.config file causes it to be defined twice.

You can read about the asp.net configuration files here:
ASP.NET Configuration File Hierarchy and Inheritance[^]

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Simon Bang Terkildsen 25-Oct-11 15:43pm    
Seems your guess was right on target. My 5 :)
Espen Harlinn 25-Oct-11 16:28pm    
Thank you, Simon!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900