fix call method fail#41
Merged
Merged
Conversation
MethodAccessException: Attempt by method 'IdentityServer8.ResponseHandling.DiscoveryResponseGenerator+<CreateDiscoveryDocumentAsync>d__8.MoveNext()' to access method 'Microsoft.IdentityModel.Tokens.CollectionUtilities.IsNullOrEmpty<System.Collections.Generic.KeyValuePair`2<System.String,System.Object>>(System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.String,System.Object>>)' failed.
MethodAccessException: Attempt by method 'IdentityServer8.ResponseHandling.DiscoveryResponseGenerator+<CreateDiscoveryDocumentAsync>d__8.MoveNext()' to access method 'Microsoft.IdentityModel.Tokens.CollectionUtilities.IsNullOrEmpty<System.Collections.Generic.KeyValuePair`2<System.String,System.Object>>(System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.String,System.Object>>)' failed.
thommo
reviewed
Sep 3, 2024
There was a problem hiding this comment.
Should use the extension method EnumerableIsNullOrEmpty. In IdentityServer4 it called IsNullOrEmpty, but this causes a conflict in .NET 8, so the extension method was renamed EnumerableIsNullOrEmpty in IdentityServer8. There were 8 occurrences of this method being called in IdentityServer4. Only 6 of them were updated to use the renamed extension. The remaining 2 (the target of this PR) were missed.
thommo
reviewed
Sep 3, 2024
thommo
reviewed
Sep 3, 2024
use EnumerableIsNullOrEmpty
use EnumerableIsNullOrEmpty
mayank30
pushed a commit
to mayank30/IdentityServer8
that referenced
this pull request
May 20, 2026
mayank30
pushed a commit
to mayank30/IdentityServer8
that referenced
this pull request
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MethodAccessException: Attempt by method 'IdentityServer8.ResponseHandling.DiscoveryResponseGenerator+d__8.MoveNext()' to access method 'Microsoft.IdentityModel.Tokens.CollectionUtilities.IsNullOrEmpty<System.Collections.Generic.KeyValuePair
2<System.String,System.Object>>(System.Collections.Generic.IEnumerable1<System.Collections.Generic.KeyValuePair`2<System.String,System.Object>>)' failed.name: Bug report
about: call mehtod failed
labels: bug report