I can't find the problem from the type of exception you shared, you should catch the error message to analyze the problem details.
Please refer to my code snippet:
try {
var requestBody = new Microsoft.Graph.Me.Messages.Item.Forward.ForwardPostRequestBody
{
Comment = "comment-value",
ToRecipients = new List<Recipient>
{
new Recipient
{
EmailAddress = new EmailAddress
{
Name = "name-value",
Address = "address-value",
},
},
},
};
await graphClient.Me.Messages["{message id}"].Forward.PostAsync(requestBody);
}
catch (ODataError odataError)
{
Console.WriteLine(odataError.Error.Code);
Console.WriteLine("Error Message: " + odataError.Error.Message);
}
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.