title: Unable to use web config transforms with securitySwitch. Possible workarounds?
body: <p>I'm using <a href="https://code.google.com/p/securityswitch/" rel="nofollow" title="securitySwitch">securitySwitch</a> for a few of my projects and it's worked wonderfully. However, one of my projects has grown and I'm unable to perform any web.config transforms on the securitySwitch config section.</p>
  
  <p>So, in my web.config, I have the following:</p>
  
  <pre><code>&lt;securitySwitch baseInsecureUri="uriWebsite1insecure" baseSecureUri="uriWebsite1secure" bypassSecurityWarning="true" mode="RemoteOnly" xmlns="http://SecuritySwitch-v4.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SecuritySwitch-v4.xsd"&gt;
  &lt;paths&gt;
    &lt;add path="~/" ignoreCase="true" /&gt;
  &lt;/paths&gt;
  &lt;/securitySwitch&gt;
  </code></pre>
  
  <p>However, in one of my web.config transforms I need to change the baseInsecureUri and baseSecureUri to point to a different website:</p>
  
  <pre><code>&lt;securitySwitch baseInsecureUri="uriWebsite2insecure" baseSecureUri="uriWebsite2secure" bypassSecurityWarning="true" mode="RemoteOnly"  xmlns="http://SecuritySwitch-v4.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SecuritySwitch-v4.xsd" xdt:Transform="Replace"&gt;
  &lt;paths&gt;
    &lt;add path="~/" ignoreCase="true" /&gt;
  &lt;/paths&gt;
  &lt;/securitySwitch&gt;
  </code></pre>
  
  <p>It gives the following error: The <a href="http://schemas.microsoft.com/XML-Document-Transform:Transform" rel="nofollow">http://schemas.microsoft.com/XML-Document-Transform:Transform</a> attribute is not declared.</p>
  
  <p>I'm looking for any possible solution, even if it's not a "clean" one. </p>
  
  <p>Thank you for your time!
  - Andrew</p>