小编Bre*_*ers的帖子

Azure Active Directory Graph Client 2.0 - 上下文当前未跟踪实体

我最近安装了Azure Active Directory Graph Client Library 2.0.2 Nuget包,无法将成员添加到组,无论是向组添加组还是将用户添加到组我在调用AddLink函数时收到以下错误:

"[System.InvalidOperationException] = {"上下文当前没有跟踪实体."}

我的代码:

IGroup group = azureClient.Groups.GetByObjectId("Guid here").ExecuteAsync().Result;
IGroup groupToAdd = azureClient.Groups.GetByObjectId("Guid here").ExecuteAsync().Result;
azureClient.Context.AddLink(group, "Members", groupToAdd);
azureClient.Context.SaveChanges();
Run Code Online (Sandbox Code Playgroud)

我无法在进行Google搜索时发现任何与Azure Active Directory图形客户端库相关的错误,因此对此有任何帮助将非常感激.

c# .net-4.5 azure-active-directory

2
推荐指数
1
解决办法
2593
查看次数

标签 统计

.net-4.5 ×1

azure-active-directory ×1

c# ×1