You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[.NET10] System.InvalidOperationException: JsonSerializerIsReflectionDisabled thrown with net10 and MSAL/OIDC on WASM #2908
changed the title [-]System.InvalidOperationException: JsonSerializerIsReflectionDisabled thrown with net10 and MSAL/OIDC on WASM[/-][+][.NET10] System.InvalidOperationException: JsonSerializerIsReflectionDisabled thrown with net10 and MSAL/OIDC on WASM[/+]on Nov 25, 2025
at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_JsonSerializerIsReflectionDisabled()
at System.Text.Json.JsonSerializerOptions.ConfigureForJsonSerializer()
at System.Text.Json.JsonSerializerOptions.MakeReadOnly(Boolean populateMissingResolver)
at System.Text.Json.JsonSerializer.GetTypeInfo(JsonSerializerOptions options, Type inputType)
at System.Text.Json.JsonSerializer.Serialize(Object value, Type inputType, JsonSerializerOptions options)
at Uno.Extensions.Serialization.SystemTextJsonSerializer.ToString(Object value, Type valueType)
at Uno.Extensions.Serialization.SerializerExtensions.ToString[String](ISerializer serializer, String value)
at Uno.Extensions.Storage.KeyValueStorage.ApplicationDataKeyValueStorage.Serialize[String](String value)
at Uno.Extensions.Storage.KeyValueStorage.ApplicationDataKeyValueStorage.<GetObjectValue>d__35`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at Uno.Extensions.Storage.KeyValueStorage.ApplicationDataKeyValueStorage.<InternalSetAsync>d__36`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at Uno.Extensions.Storage.KeyValueStorage.BaseKeyValueStorageWithCaching.<SetAsync>d__21`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at Uno.Extensions.Authentication.TokenCache.SaveAsync(String provider, IDictionary`2 tokens, CancellationToken cancellation)
at Uno.Extensions.Authentication.AuthenticationService.LoginAsync(IDispatcher dispatcher, IDictionary`2 credentials, String provider, Nullable`1 cancellationToken)
at UnoApp140.Presentation.LoginModel.Login(CancellationToken token) in X:\src\TestApps\UnoApp140\UnoApp140\Presentation\LoginModel.cs:line 12
Activity
jonpryor commentedon Nov 12, 2025
@kazo0: do we have a call stack? Is this from
MsalAuthenticationProvider.cs? If so, I may have a pending fix as part of #2899.[-]System.InvalidOperationException: JsonSerializerIsReflectionDisabled thrown with net10 and MSAL/OIDC on WASM[/-][+][.NET10] System.InvalidOperationException: JsonSerializerIsReflectionDisabled thrown with net10 and MSAL/OIDC on WASM[/+]kazo0 commentedon Dec 3, 2025
Yes this is still an issue
UnoApp140.zip
kazo0 commentedon Dec 3, 2025
@jonpryor stacktrace:
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
chore: Support $(JsonSerializerIsReflectionEnabledByDefault)=false
rajamatt commentedon Jan 22, 2026
No JsonSerializer errors with dev Uno.Sdk 6.5.0-dev.131.
Tested with:
Templates/SDK: 6.5.0-dev.131 (which uses Uno version 6.6.0-dev.97)
Platform(s): Wasm
IDE: Visual Studio 2026 18.2.1
OS: Windows