
在此之前我只是使用定位器替换名称.
现在设置已加密,没有名称.
<connectionStrings configProtectionProvIDer="Pkcs12ProvIDer"><EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns="http://www.w3.org/2001/04/xmlenc#"> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes192-cbc" /> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#"> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" /> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <Keyname>rsaKey</Keyname> </KeyInfo> <CipherData> <CipherValue>CipherValueHere</CipherValue> </CipherData> </EncryptedKey> </KeyInfo> <CipherData> <CipherValue>CipherValueHere</CipherValue> </CipherData></EncryptedData>
如何更新我的转换以用此替换整个连接字符串部分?是否有元素名称“connectionStrings”的定位器?
非常感谢,
约翰
<connectionStrings xdt:transform="Replace">
xdt:transform =“Replace”会做的伎俩.干杯!!
总结以上是内存溢出为你收集整理的.Net Web.Config Transformations,替换整个ConnectionString部分全部内容,希望文章能够帮你解决.Net Web.Config Transformations,替换整个ConnectionString部分所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)