Web.config中所修改的节点已存在

只需在<add>前加入<remove>节点

<configuration>
  <connectionStrings>
    <remove name="constr"/>
    <add name="constr" connectionString="server=.;database=jeryTest;uid=sa;pwd=sa;"/>
  </connectionStrings>
</configuration>
posted @ 2012-04-24 15:18  ~夜~  阅读(160)  评论(0编辑  收藏  举报