web.config中的sectiongroup问题 [英] sectiongroup problem in web.config
本文介绍了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.
推荐答案
我的猜测是,您将在
中找到"oracle.dataaccess.client"部分组. [Windows目录] \ Microsoft.NET \ Framework \ [Framework版本] \ CONFIG \ machine.config文件.
将其添加到您的web.config文件会导致对其进行两次定义.
您可以在此处阅读有关asp.net配置文件的信息:
ASP.NET配置文件的层次结构和继承 [
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
这篇关于web.config中的sectiongroup问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文