zoukankan      html  css  js  c++  java
  • 每个配置文件中只允许存在一个元素

    这个错误有可能是下面几种情况:
    一. <configuration>
             <configSections>

              <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
      <section name="securityCryptographyConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Configuration.CryptographySettings, Microsoft.Practices.EnterpriseLibrary.Security.Cryptography, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
     </configSections>
     <appSettings>
      <add key="conn" value="server=192.168.10.19;database=management;uid=******;pwd=****"/>
      <add key="ldap" value="LDAP://192.168.10.19"/>
      <add key="ldapIP" value="LDAP://192.168.10.19/"/>
      <add key="GC" value="GC://DC=gsd,DC=xmepb,DC=gov,DC=cn"/>
      <add key="parentDomain" value="gsd#LDAP://192.168.10.19;ad#LDAP://192.168.10.147;"/>
      <add key="admin" value="******"/>
      <add key="pwd" value="******"/>  
     </appSettings>
    </configuration>
    标签<configSections>没有放到<configuration>的第一级子标签下面。

    二.可能多写了一个<appSettings>的标签。
    三. 更改完后最好重启一下VS。

  • 相关阅读:
    在CentOS 7上安装Docker
    VMware虚拟机上安装CentOS 7
    5、Linux的常用命令
    3.Linux 系统目录结构
    2、Linux的关机方式
    zepto callback
    解callback嵌套
    debugger 调试的一些经验
    Chrome Timeline的指标说明:Blocked、Connect、Send、Wait、Receive
    jquery ajax promise
  • 原文地址:https://www.cnblogs.com/rodney/p/904890.html
Copyright © 2011-2022 走看看