microsoft / devhomegithubextension

Dev Home GitHub Extension
MIT License
284 stars 45 forks source link

Reflection-based serialization has been disabled error on adding Account #432

Closed dkbennett closed 3 months ago

dkbennett commented 3 months ago

Dev Home version

No response

Windows build number

No response

Other software

No response

Steps to reproduce the bug

Build release, add GitHubExtension and try to add account. Click on the button to launch the login UI.

Expected result

Browser launches.

Actual result

Something Went Wrong

[2024/08/16 11:34:08.722 ERR] (LoginUIController) Error: System.InvalidOperationException: Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property. at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_JsonSerializerIsReflectionDisabled() at System.Text.Json.JsonSerializerOptions.ConfigureForJsonSerializer() at System.Text.Json.JsonSerializer.GetTypeInfo(JsonSerializerOptions, Type) at System.Text.Json.JsonSerializer.GetTypeInfoT at System.Text.Json.JsonSerializer.Deserialize[TValue](String , JsonSerializerOptions ) at GitHubExtension.DeveloperId.LoginUIController.<>c__DisplayClass11_0.<b__0>d.MoveNext()

Included System Information

No response