Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.MissingMethodException AddAsync #629

Open
jipefernandes opened this issue Mar 22, 2022 · 2 comments
Open

System.MissingMethodException AddAsync #629

jipefernandes opened this issue Mar 22, 2022 · 2 comments

Comments

@jipefernandes
Copy link

jipefernandes commented Mar 22, 2022

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

@luismanez
Copy link

Hitting this same issue. In my case after migrating a FunctionApp from .net core 3.1 to .net 6. Using PnP Framework 1.9.40-nightly.

@luismanez
Copy link

In my case (and pretty sure yours too), this issue is because your project (or one of its dependencies), is referencing a greater version of the MS Graph SDK, and then, we are here: #660

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants