Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all articles
Browse latest Browse all 663

MSDeploy not replacing encoded xml strings

$
0
0

Hi,

I have a problem with the "JWTPrivateKey" Parameter in my WebConfig File (using WebDeploy 3.6). The "redirectURL" Parameter works fine.

In web.config I have:

<configuration>

<appSettings>

<add key="redirectUrl" value="https://url.de" />

<add key="JwtPrivateKey" value="&lt;RSAKeyValue&gt;SecureKey;/RSAKeyValue&gt;" />

</appSettings>

</configuration>

Parameters.xml:

<parameter name="redirectUrl" description="Desc" defaultValue="https://Website.de">
<parameterEntry kind="XmlFile" scope="Web.config" match="/configuration/appSettings/add[@key='redirectUrl']/@value" />
</parameter>

<parameter name="JwtPrivateKey" description="JwtPrivateKey" defaultValue="&lt;RSAKeyValue&gt;TestKey;/RSAKeyValue&gt;">
<parameterEntry kind="XmlFile" scope="Web.config" match="/configuration/appSettings/add[@key='JwtPrivateKey']/@value" />
</parameter>

SetParameters.xml:

<setParameter name="LusdForumURL" value="https://lusd-forum-url.berlin.de" />

<setParameter name="JwtPrivateKey" value="&lt;RSAKeyValue&gt;&lt;Modulus&gt;SecureKey&gt;" />

But this value is not set when the web application is deployed. When I change my SetParameters.xml to, it works:

<setParameter name="JwtPrivateKey" value=""&lt;RSAKeyValue&gt;&lt;Modulus&gt;SecureKey&gt;"" />

Any hints why the encoded xml value not set?

See also (similar problem):

https://stackoverflow.com/questions/44433931/msdeploy-not-replacing-encoded-xml-strings

Regards

Robin


Viewing all articles
Browse latest Browse all 663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>