Error Could not load file or assembly 'System.Formats.Asn1 with UIPath.Mail.SMTP.Activities.SendMail

Hi all !
I need your help…
I got this error when I try to use the activity UiPath.Mail.SMTP.Activities.SendMail :
‘Send Mail without attachment: Could not load file or assembly ‘System.Formats.Asn1, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The system cannot find the file specified.’

I do not understand…
-I’m using the same workflow to send mail (same activities, same parameters) in other process and all works correctly
-I’ve tried to edit the main.xaml file to copy / paste all
-I’ve tried to delete send mail activity , reimport… etc…
-I’ve tried to copy paste activity from my working process

So could you tell me what can I do ?
Thank you !

@Florent_Delage,

Open the workflow throwing this error
Open Imports Panel at the bottom which will be along with Variables panel.
Import this namespace System.Formats.Asn1 by typing or copy pasting it there.

Check if the issue resolves now.

Thank you, I’ve tried and I see the namespace into the list but nothing change…

@Florent_Delage,

Ok. Try this hardcode way to import.


Not working also…

@Florent_Delage,

Dose it works in Studio?