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

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

<configuration>
  <connectionStrings>
    <remove name="constr"/>
    <add name="constr" connectionString="server=.;database=jeryTest;uid=sa;pwd=sa;"/>
  </connectionStrings>
</configuration>
原文地址:https://www.cnblogs.com/jery0125/p/2468130.html