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。

  • 相关阅读:
    bzoj 3036: 绿豆蛙的归宿
    bzoj 2956: 模积和 ——数论
    bzoj 4378: [POI2015]Logistyka ——树桩数组+离散化
    Codeforces Round #441 Div. 2题解
    es 学习笔记
    Redis 热点key
    深入拆解Tomcat &Jetty——极客时间
    mysql 行转列
    在kafka connect 同步 mysql 主从数据库
    使用Kafka Connect 导入导出数据
  • 原文地址:https://www.cnblogs.com/rodney/p/904890.html
Copyright © 2011-2022 走看看