title: Web Config Transform not working
body: <p>In a .NET MVC 3.0 Application I have the following configuration in <code>appSettings</code>:</p>
  
  <h1>web.config</h1>
  
  <pre><code>&lt;appSettings&gt;
  &lt;add key="SMTPHost" value="mail.domain.com"/&gt;
      &lt;add key="SMTPUsername" value="user@gmail.com"/&gt;
      &lt;add key="SMTPPort" value="25"/&gt;
      &lt;add key="SMTPPwd" value="mypassword"/&gt;
      &lt;add key="EmailFrom" value="notific@gmail.com"/&gt;
  &lt;/appSettings&gt;
  </code></pre>
  
  <p>For debugging, I have the following configuration transform defined:</p>
  
  <h1>web.Debug.config</h1>
  
  <pre><code>&lt;appSettings&gt;
      &lt;add  key="SMTPPort" value="58" xdt:Transform="Replace" xdt:Locator="Match(key)" /&gt;
  &lt;/appSettings&gt;
  </code></pre>
  
  <p>And I run the application in debug mode, but my SMTP port is still taking the value from the <code>web.config</code>, not <code>web.Debug.config</code>.</p>
  
  <p>Can anyone suggest what could be wrong in this configuration?</p>