File 'Main.xaml' - argument 'OutArgument': Type 'snm:MailMessage' ('clr-namespace:System.Net.Mail;assembly=System.Net.Mail') could not be resolved and was automatically replaced with 'UnknownType'

I have no errors in my project. But I can’t ‘SAVE ALL’ from the main or execute my project. On running the project I get the below error.

""File ‘Main.xaml’ - argument ‘OutArgument’: Type ‘snm:MailMessage’ (‘clr-namespace:System.Net.Mail;assembly=System.Net.Mail’) could not be resolved and was automatically replaced with ‘UnknownType’

How can I solve this issue, please suggest.
I’m using windows legacy framework and have updated to the studio to latest community beta version for 2023.

Hi, maybe this would help:
Check if you have all necessary packages installed and update UiPath.Mail.Activities. If there is still a problem, remove this argument and create it again