'odata.nextLink'-通过图形库发送邮件时出错

'odata.nextLink'-error in SendMail via Graph-Library

我想继续使用几周前运行的简单 SendMail 示例。
我只更新了 NuGet-Packages,但现在失败了。
(这使用了Microsoft.Graph、.Graph.Core、.Identity.Client和依赖项,总共>20)

认证正常,可以查询用户

    ...
    var u = await graphServiceClient.Users["myname@company.de"].Request().GetAsync();
    Console.WriteLine($"okay, user = {u.DisplayName}"); // this works

    var M = new Message();
    M.Subject = "Graph Library Test";
    M.ToRecipients = new Recipient[] 
        { new Recipient() { EmailAddress = new EmailAddress() { Address = "myname@company.de" } } };
    string htmlBody = @"<div>Test-Message</div>";
    M.Body = new ItemBody() { ContentType = BodyType.Html, Content = htmlBody };
    await graphServiceClient.Users["abc@company.de"].SendMail(M, false).Request().PostAsync();
    

此错误发生在 SendMail 行:

-- ERROR --
Code: RequestBodyRead Message: The 'odata.nextLink' instance or property annotation has a null value. In OData, the 'odata.nextLink' instance or property annotation must have a non-null string value.

我在这方面的所有发现是 'nextLink' 似乎与请求中的分页有关,但没有提供任何帮助。

今天早上将 Microsoft.Graph 从 4.1.0 更新到 4.2.0 后,我遇到了同样的问题。我已经恢复到 4.1.0,它又恢复工作了。