# CryptoConfig does not have a public static method named 'AddAlgorithm'

**URL:** <https://forum.uipath.com/t/cryptoconfig-does-not-have-a-public-static-method-named-addalgorithm/501216>\
**Category:** Activities\
**Tags:** properties-panel, invoke-method, question, studio, cryptography, system, activities\
**Created:** [Décembre 22, 2022, 12:11 UTC](https://forum.uipath.com/t/cryptoconfig-does-not-have-a-public-static-method-named-addalgorithm/501216 "2022-12-22T12:11:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![noob\_dev](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/noob_dev/32/335761_2.png) [@noob\_dev](https://forum.uipath.com/u/noob_dev)\
**Post date:** [Décembre 22, 2022, 12:11 UTC](https://forum.uipath.com/t/cryptoconfig-does-not-have-a-public-static-method-named-addalgorithm/501216/1 "2022-12-22T12:11:10Z")

</div>

Hi all Developers,

I would like to convert this statement in C# to Invoke Method in UiPath.

The statement is:  
CryptoConfig.AddAlgorithm(typeof(XmlDsigC14NTransform), “[http://www.w3.org/TR/2001/REC-xml-c14n-20010315](http://www.w3.org/TR/2001/REC-xml-c14n-20010315)”);

But it shows error CryptoConfig does not have a public static method named ‘AddAlgorithm’ and I have tried to fix it but it doesn’t work.  
This is my xaml.  
[Main.xaml](https://forum.uipath.com/uploads/short-url/yDAS6XUTUr4P4FwxKz7IPlhKcaJ.xaml) (5.0 KB)

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [Décembre 22, 2022, 1:35 UTC](https://forum.uipath.com/t/cryptoconfig-does-not-have-a-public-static-method-named-addalgorithm/501216/2 "2022-12-22T13:35:17Z")

</div>

Hi,

How about the following?

 ![image](https://global.discourse-cdn.com/uipath/original/4X/a/e/b/aeb26ae052ec21efea6cef341541c0619a07e66f.png)

[Main3.xaml](https://forum.uipath.com/uploads/short-url/hhgsGNBPjX0iUShHiehKMZAY57Q.xaml) (6.6 KB)

Regards.

---

<div class="post-metadata">

**Author:** ![noob\_dev](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/noob_dev/32/335761_2.png) [@noob\_dev](https://forum.uipath.com/u/noob_dev)\
**Post date:** [Décembre 23, 2022, 2:31 UTC](https://forum.uipath.com/t/cryptoconfig-does-not-have-a-public-static-method-named-addalgorithm/501216/3 "2022-12-23T02:31:35Z")

</div>

Thank you @Yoichi . It works well now

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [Décembre 26, 2022, 2:31 UTC](https://forum.uipath.com/t/cryptoconfig-does-not-have-a-public-static-method-named-addalgorithm/501216/4 "2022-12-26T02:31:58Z")

</div>

A fermé ce sujet (le Décembre 26, 2022, 2:31 UTC)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
