Facing an error while mapping with the arguments

Hi every one!
Faced this type of error.

Error ERROR Validation Error BC31424: Type ‘System.Net.Mail.MailMessage’ in assembly ‘f3f7aba2-b076-46cc-be0d-24220522c8ed, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ has been forwarded to assembly ‘System.Net.Mail, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. Either a reference to ‘System.Net.Mail, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ is missing from your project or the type ‘System.Net.Mail.MailMessage’ is missing from assembly ‘System.Net.Mail, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. Framework/Process.xaml

Hi @Honey_Hanvitha

Check the below thread

Hope it helps!!

Hi @Honey_Hanvitha

Welcome to UiPath

  1. Update Dependencies: Go to Manage Packages → Update System.Net.Mail.
  2. Check Imports: Open Imports panel → Add System.Net.Mail.
  3. Reinstall Dependencies: Remove and reinstall UiPath.Mail.Activities.
  4. Check Target Framework: Use .NET 6 or compatible version.
  5. Restart UiPath Studio: Close and reopen the project.

If you found helpful mark as a solution. Thanks

@Honey_Hanvitha

You can try below,

Close the UiPath project and navigate to C:\Users\<user_name>\.nuget. Rename the Packages folder, then restart the project to check if the issue is resolved.

If the issue persists, close the project and rename the project.json file. Open the project, and if any packages are missing, manually copy and paste the missing dependencies into project.json, then reopen the project.