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

[Bug] System.MissingMethodException - Method not found: 'Void System.Text.Json.Serialization.Metadata.JsonObjectInfoValues1.set_ObjectCreator(System.Func1<!0>)' #5021

Open
christothes opened this issue Dec 13, 2024 · 0 comments

Comments

@christothes
Copy link

Library version used

4.66.2.0

.NET version

net9

Scenario

ConfidentialClient - service to service (AcquireTokenForClient)

Is this a new or an existing app?

The app is in production, I haven't upgraded MSAL, but started seeing this issue

Issue description and reproduction steps

Customer updated their System.Text.Json dependency to 9.0.0, and started seeing the following exception in Azure.Identity:

Method not found: 'Void System.Text.Json.Serialization.Metadata.JsonObjectInfoValues`1.set_ObjectCreator(System.Func`1)
{
        "id": "12085873",
        "outerId": "21899339",
        "type": "System.MissingMethodException",
        "message": "Method not found: 'Void System.Text.Json.Serialization.Metadata.JsonObjectInfoValues`1.set_ObjectCreator(System.Func`1<!0>)'.",
        "parsedStack": [
            {
                "level": 0,
                "method": "Microsoft.Identity.Client.Platforms.net6.MsalJsonSerializerContext.get_InstanceDiscoveryResponse",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 1,
                "method": "Microsoft.Identity.Client.Platforms.net6.MsalJsonSerializerContext.GetTypeInfo",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 2,
                "method": "System.Text.Json.JsonSerializer.GetTypeInfo",
                "assembly": "System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51",
                "line": 0
            },
            {
                "level": 3,
                "method": "System.Text.Json.JsonSerializer.Deserialize",
                "assembly": "System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51",
                "line": 0
            },
            {
                "level": 4,
                "method": "Microsoft.Identity.Client.Utils.JsonHelper.DeserializeFromJson",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 5,
                "method": "Microsoft.Identity.Client.OAuth2.OAuth2Client.CreateResponse",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 6,
                "method": "Microsoft.Identity.Client.OAuth2.OAuth2Client+<ExecuteRequestAsync>d__13`1.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 7,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 8,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 9,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 10,
                "method": "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 11,
                "method": "Microsoft.Identity.Client.Instance.Discovery.NetworkMetadataProvider+<SendInstanceDiscoveryRequestAsync>d__7.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 12,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 13,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 14,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 15,
                "method": "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 16,
                "method": "Microsoft.Identity.Client.Instance.Discovery.NetworkMetadataProvider+<FetchAllDiscoveryMetadataAsync>d__6.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 17,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 18,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 19,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 20,
                "method": "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 21,
                "method": "Microsoft.Identity.Client.Instance.Discovery.NetworkMetadataProvider+<GetMetadataAsync>d__4.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 22,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 23,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 24,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 25,
                "method": "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 26,
                "method": "Microsoft.Identity.Client.Instance.Discovery.InstanceDiscoveryManager+<FetchNetworkMetadataOrFallbackAsync>d__10.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 27,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 28,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 29,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 30,
                "method": "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 31,
                "method": "Microsoft.Identity.Client.Instance.Discovery.InstanceDiscoveryManager+<GetMetadataEntryAsync>d__9.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 32,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 33,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 34,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 35,
                "method": "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 36,
                "method": "Microsoft.Identity.Client.Instance.AuthorityManager+<RunInstanceDiscoveryAndValidationAsync>d__12.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 37,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 38,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 39,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 40,
                "method": "Microsoft.Identity.Client.Internal.Requests.ClientCredentialRequest+<GetAccessTokenAsync>d__4.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 41,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 42,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 43,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 44,
                "method": "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 45,
                "method": "Microsoft.Identity.Client.Internal.Requests.ClientCredentialRequest+<ExecuteAsync>d__3.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 46,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 47,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 48,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 49,
                "method": "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 50,
                "method": "Microsoft.Identity.Client.Internal.Requests.RequestBase+<>c__DisplayClass11_1+<<RunAsync>b__1>d.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 51,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 52,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 53,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 54,
                "method": "Microsoft.Identity.Client.Utils.StopwatchService+<MeasureCodeBlockAsync>d__4.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 55,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 56,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 57,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 58,
                "method": "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 59,
                "method": "Microsoft.Identity.Client.Internal.Requests.RequestBase+<RunAsync>d__11.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 60,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 61,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 62,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 63,
                "method": "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 64,
                "method": "Microsoft.Identity.Client.ApiConfig.Executors.ConfidentialClientExecutor+<ExecuteAsync>d__3.MoveNext",
                "assembly": "Microsoft.Identity.Client, Version=4.66.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae",
                "line": 0
            },
            {
                "level": 65,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 66,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 67,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 68,
                "method": "System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 69,
                "method": "Azure.Identity.AbstractAcquireTokenParameterBuilderExtensions+<ExecuteAsync>d__0`1.MoveNext",
                "assembly": "Azure.Identity, Version=1.13.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8",
                "line": 0
            },
            {
                "level": 70,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 71,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 72,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 73,
                "method": "System.Threading.Tasks.ValueTask`1.get_Result",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 74,
                "method": "Azure.Identity.MsalConfidentialClient+<AcquireTokenForClientCoreAsync>d__21.MoveNext",
                "assembly": "Azure.Identity, Version=1.13.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8",
                "line": 0
            },
            {
                "level": 75,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 76,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 77,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 78,
                "method": "System.Threading.Tasks.ValueTask`1.get_Result",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 79,
                "method": "Azure.Identity.MsalConfidentialClient+<AcquireTokenForClientAsync>d__20.MoveNext",
                "assembly": "Azure.Identity, Version=1.13.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8",
                "line": 0
            },
            {
                "level": 80,
                "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 81,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 82,
                "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 83,
                "method": "System.Threading.Tasks.ValueTask`1.get_Result",
                "assembly": "System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
                "line": 0
            },
            {
                "level": 84,
                "method": "Azure.Identity.ClientSecretCredential+<GetTokenAsync>d__22.MoveNext",
                "assembly": "Azure.Identity, Version=1.13.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8",
                "line": 0
            }
        ]

Relevant code snippets

#
var credential = new ClientSecretCredential(TenantId, ClientId, ClientSecret);
var token = await credential.GetTokenAsync(new TokenRequestContext([$"https://batch.core.windows.net/.default"])); // <-- exception here

Expected behavior

No response

Identity provider

Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)

Regression

No response

Solution and workarounds

No response

@christothes christothes added needs attention Delete label after triage untriaged Do not delete. Needed for Automation labels Dec 13, 2024
@gladjohn gladjohn added bug P1 and removed untriaged Do not delete. Needed for Automation needs attention Delete label after triage labels Dec 13, 2024
@gladjohn gladjohn moved this from Committed to Committed High Priority in MSAL Customer Trust / QM Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Committed High Priority
Development

No branches or pull requests

2 participants