Facing Issue When using Send SMTP Mail Message Activity

Hi

I am using the Send SMTP Mail Message activity. The workflow runs successfully during debugging, but when it runs normally, it intermittently throws the following error:

“Send SMTP Mail Message: 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.”

How to resolve this issue?

Thank you In Advance

Hi @sourav.bhunia

Please confirm below details so I can provide you solution

1 UiPath version
2 are you using window or window legacy
3 where u getting error locally or through orchestrator
Cheers

Hi @sourav.bhunia
->Ensure Studio and robot are on the same version
->Update the UiPath.Mail.Activities
->Clear NuGet cache and reinstall dependencies
->Make sure the robot runtime uses the same .NET as studio

Hi @sourav.bhunia,
This is a .NET dependency mismatch, not an SMTP issue. Studio and Robot are using different runtimes, so System.Formats.Asn1 cannot be found at run time. Align Studio and Robot versions, clear the NuGet cache, republish the process, or downgrade UiPath.Mail.Activities to a compatible version.

Hope this works

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