标题:[求助]web.config 配置access数据库
只看楼主
a309943470
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-10-8
结帖率:0
已结贴  问题点数:20 回复次数:1 
[求助]web.config 配置access数据库
<configuration>

  

    <configSections>
      <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
          <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
            <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
            <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
            <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          </sectionGroup>
        </sectionGroup>
      </sectionGroup>
    </configSections>  

    <appSettings/>
    <connectionStrings/>
  <appSettings>
    <add key="accessCon" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|注册名单.mdb"/>   
  </appSettings>
错误信息:各个节在每个配置文件中只能出现一次

新手 ,不太明白,请大家帮忙啊。。。。。


搜索更多相关主题的帖子: 数据库 access 
2011-11-08 12:07
yms123
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
得分:20 
    <appSettings/>这里这个已经结束
    <connectionStrings/>
   然后又出现一个appSettings这个节点只能有一个
  <appSettings>
    <add key="accessCon" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|注册名单.mdb"/>   
  </appSettings>
2011-11-08 12:10



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-354593-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.122812 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved