title: Web.config Remove ConnectionStrings node from Web.Release.Config
body: <p>I have this in my Web.config so that my service will run locally:</p>
  
  <pre><code>  &lt;connectionStrings&gt;
  
      &lt;add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=IPADD;Initial Catalog=DB;Persist Security Info=True;User ID=UN;Password=PW" /&gt;
    &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>I need this here because the Web.Debug.Config doesn't work. So when I publish I want to remove this string because it is actually inherited from a parent Web.config</p>
  
  <pre><code>  &lt;connectionStrings&gt;
      &lt;remove name="DefaultConnection"/&gt;
  
    &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>This doesn't seem to work... (it throws a <code>The entry 'DefaultConnection' has already been added.</code> error)</p>
  
  <p>How can I remove it? XSLT? </p>
  
  <p>P.s. I can't use <code>clear/</code> because it removes the Machine.Config DB Connection string to the Membership provider also throwing a different error</p>