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 "System.Collections.Generic.IList`1<System.Net.Http.DelegatingHandler> Microsoft.Kiota.Http.HttpClientLibrary.KiotaClientFactory.CreateDefaultHandlers()" #2520

Closed
DarthSonic opened this issue May 27, 2024 · 6 comments
Labels
status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:bug A broken experience

Comments

@DarthSonic
Copy link

DarthSonic commented May 27, 2024

Describe the bug

We upgraded from 5.5.2 to 5.5.4 and upgraded all Kiota packages and now get this exception:

                var authenticationProvider = new BaseBearerTokenAuthenticationProvider(tokenProvider);
                var msGraphClient = new GraphServiceClient(authenticationProvider);

System.MissingMethodException
HResult=0x80131513
Message=Methode nicht gefunden: "System.Collections.Generic.IList`1<System.Net.Http.DelegatingHandler> Microsoft.Kiota.Http.HttpClientLibrary.KiotaClientFactory.CreateDefaultHandlers()".
Source=Microsoft.Graph.Core
StackTrace:
at Microsoft.Graph.GraphClientFactory.CreateDefaultHandlers(GraphClientOptions graphClientOptions)
at Microsoft.Graph.BaseGraphRequestAdapter..ctor(IAuthenticationProvider authenticationProvider, GraphClientOptions graphClientOptions, IParseNodeFactory parseNodeFactory, ISerializationWriterFactory serializationWriterFactory, HttpClient httpClient)
at Microsoft.Graph.GraphServiceClient..ctor(IAuthenticationProvider authenticationProvider, String baseUrl)
at CleverMatch.Core.Services.MSGraph.MsGraphService.d__14.MoveNext() in C:\Source\Repos\CleverMatch\CleverMatch.Core\Services\MsGraph\MsGraphService.cs:line 320

Expected behavior

It worked before upgrading packages and there was no breaking change.

How to reproduce

Create new GraphServiceClient().

SDK Version

5.5.4

Latest version known to work for scenario above?

Microsoft.Graph.5.52.0
Microsoft.Kiota.Abstractions.1.9.1
Microsoft.Kiota.Authentication.Azure.1.1.5
Microsoft.Kiota.Http.HttpClientLibrary.1.4.1
Microsoft.Kiota.Serialization.Form.1.2.0
Microsoft.Kiota.Serialization.Json.1.3.0
Microsoft.Kiota.Serialization.Multipart.1.1.4
Microsoft.Kiota.Serialization.Text.1.2.0

Known Workarounds

Downgrading to:
Microsoft.Graph.5.52.0
Microsoft.Kiota.Abstractions.1.9.1
Microsoft.Kiota.Authentication.Azure.1.1.5
Microsoft.Kiota.Http.HttpClientLibrary.1.4.1
Microsoft.Kiota.Serialization.Form.1.2.0
Microsoft.Kiota.Serialization.Json.1.3.0
Microsoft.Kiota.Serialization.Multipart.1.1.4
Microsoft.Kiota.Serialization.Text.1.2.0

Debug output

Click to expand log ```
</details>


### Configuration

- OS: Windows 11 Pro, Windows Server 2019
- x64

### Other information

_No response_
@DarthSonic DarthSonic added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels May 27, 2024
@DarthSonic
Copy link
Author

I investigatged further after downgrading Ms.Graph and Kiota packages. Issue starts when uppgrading Microsoft.Kiota.Http.HttpClientLibrary from 1.4.1 to 1.4.3 (did not test 1.4.2).

@stefanboerner
Copy link

We are facing the same issue.

@DarthSonic
Copy link
Author

I don't know which is the right place for this issue. Some other user opened an issue for kiota-http-dotnet project here: microsoft/kiota-http-dotnet#261

@andrueastman
Copy link
Member

Thanks for raising this. This looks to be possiblly caused by conflicting references in from the core pacakge.

Any chance you can confirm this is still an issue when referencing the latest core package at https://www.nuget.org/packages/Microsoft.Graph.Core/3.1.12

@andrueastman andrueastman added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels May 28, 2024
@derekreynolds882
Copy link

Issue is resolved for me when referencing the latest core package
https://www.nuget.org/packages/Microsoft.Graph.Core/3.1.12

@DarthSonic
Copy link
Author

It works with 3.1.12 of Microsoft.Graph.Core. Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

4 participants