config中的sectiongroup问题

config中的sectiongroup问题

本文介绍了web.config中的sectiongroup问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试在ASP.NET中实现oracle UDT

我正面临以下错误


部分或组名称"oracle.dataaccess.client"已经定义.对此的更新只能在定义它的配置级别上进行."

我正在使用的配置是


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 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.

推荐答案


这篇关于web.config中的sectiongroup问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 09:31