frenzypeng / securityswitch

Automatically exported from code.google.com/p/securityswitch
Other
0 stars 0 forks source link

Cannot use in conjunction with web.config transforms #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
While having securitySwitch information in web.config, if I need to update 
variables based on if it's a release, debug, etc build I would typically add 
the section to a config transform with something like:

  <securitySwitch baseInsecureUri="uri1" baseSecureUri="uri2" 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">
    <paths>
      <add path="~/" ignoreCase="true" />
    </paths>
  </securitySwitch>

But, that gives the error: The 
'http://schemas.microsoft.com/XML-Document-Transform:Transform' attribute is 
not declared.

Original issue reported on code.google.com by a...@ajtatum.com on 27 Mar 2012 at 6:58

GoogleCodeExporter commented 8 years ago
For now, I recommend you remove the XML namespace for the SecuritySwitch 
section. Try using this instead.

<securitySwitch baseInsecureUri="uri1" baseSecureUri="uri2" 
bypassSecurityWarning="true" mode="RemoteOnly" xdt:Transform="Replace">
  <paths>
    <add path="~/" ignoreCase="true" />
  </paths>
</securitySwitch>

Original comment by vent...@gmail.com on 28 Mar 2012 at 10:59

GoogleCodeExporter commented 8 years ago

Original comment by vent...@gmail.com on 30 Mar 2012 at 12:22