Skip to content

GeneralUpdate.Differential error #178

Description

@JusterZhu

请分析issue上下文,并修复问题。

2026-04-25 22:07:40.1667|Error|Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property. | System.Exception: Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property.
 ---> 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() + 0x2b
   at System.Text.Json.JsonSerializerOptions.ConfigureForJsonSerializer() + 0x16d
   at System.Text.Json.JsonSerializer.GetTypeInfo(JsonSerializerOptions, Type) + 0x2a
   at System.Text.Json.JsonSerializer.GetTypeInfo[T](JsonSerializerOptions) + 0x25
   at System.Text.Json.JsonSerializer.Serialize[TValue](TValue, JsonSerializerOptions) + 0x19
   at GeneralUpdate.Common.FileBasic.StorageManager.CreateJson[T](String, T, JsonTypeInfo`1) + 0x52
   at GeneralUpdate.Differential.Matchers.DefaultCleanStrategy.<ExecuteAsync>d__4.MoveNext() + 0x2fa
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb2
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x4b
   at GeneralUpdate.Application.Implement.Tools.PacketService.<Build>d__5.MoveNext() + 0x106
   --- End of inner exception stack trace ---
   at GeneralUpdate.Application.Implement.Tools.PacketService.<Build>d__5.MoveNext() + 0x332
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb2
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x4b
   at GeneralUpdate.Tools.ViewModels.PacketViewModel.<BuildPacketAction>d__58.MoveNext() + 0xd1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions