pnp / pnp/pnpframework

System.MissingMethodException AddAsync

Open
#629 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

Hi,
I’m trying to migration my.net 4.7 solution to a new version with the .net 6. To achieve this I’ve update my projects and updated the following PNP packages do the latest version available today:

  • PnP.Framework
  • PnP.Core
    However when I try to add new group in my SharePoint using this method “UnifiedGroupsUtility.CreateUnifiedGroup”I got the following error:, System.MissingMethodException: 'Method not found: 'System.Threading.Tasks.Task`1<Microsoft.Graph.Group> Microsoft.Graph.IGraphServiceGroupsCollectionRequest.AddAsync(Microsoft.Graph.Group)'.'

Here the exception message: Method not found: 'System.Threading.Tasks.Task`1<Microsoft.Graph.Group> Microsoft.Graph.IGraphServiceGroupsCollectionRequest.AddAsync(Microsoft.Graph.Group)'.

I’ve already spend more than a day to try to understand or fixed but with no success. Anyone knows this error and can help me please?
Thank you so much.
Best Regards
JP Fernandes

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with UnifiedGroupsUtility.CreateUnifiedGroup and reproduce the System.MissingMethodException on the reported .NET 6 migration with the updated PnP.Framework and PnP.Core packages. Compare the referenced Microsoft Graph method and package versions; done means creating a new SharePoint group succeeds without the missing-method error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.