RSACryptoServiceProvider is not found in System.Security.Cryptography

Hello, I am writing a custom code activity in which I am using RSACryptoServiceProvider

[ using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider()) ]

At this code level, UiPath throws an error such as error CS1069: The type name ‘RSACryptoServiceProvider’ could not be found in the namespace ‘System.Security.Cryptography’. This type has been forwarded to assembly 'System.Security.Cryptography.Csp

I have installed System.Security.Cryptography and System.Security.Cryptography.Csp but this is not wroking.

This code works very well in Visual Studio but here it gives me an error

I have tried multiple changes but it does not gives me any output

Hi @Chand

Please check on this

Cheers!!

@Chand

Can you show the code you are using

Cheers