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.”
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.