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。

  • 相关阅读:
    第五次实验作业
    第四次作业
    java三
    java作业二
    java作业一
    作业11
    作业10
    作业9
    作业8
    作业7
  • 原文地址:https://www.cnblogs.com/rodney/p/904890.html
Copyright © 2011-2022 走看看