System.NotSupportedException: Serialization and deserialization of 'System.Action`1[[AutoMapper.Profile, AutoMapper, Version=7.0.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005]]' instances are not supported. The unsupported member type is located on type 'System.Action`1[AutoMapper.Profile]'. Path: $.Data.AutoMapMappingConfigs.
---> System.NotSupportedException: Serialization and deserialization of 'System.Action`1[[AutoMapper.Profile, AutoMapper, Version=7.0.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005]]' instances are not supported.
at System.Text.Json.Serialization.Converters.UnsupportedTypeConverter`1.Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter`2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.JsonCollectionConverter`2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.Converters.ListOfTConverter`2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.JsonCollectionConverter`2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.JsonConverter`1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ThrowNotSupportedException(WriteStack& state, NotSupportedException ex)
at System.Text.Json.Serialization.JsonConverter`1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.JsonConverter`1.WriteCoreAsObject(Utf8JsonWriter writer, Object value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.JsonSerializer.WriteCore[TValue](JsonConverter jsonConverter, Utf8JsonWriter writer, TValue& value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken)
at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken)
at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Senparc.Xncf.Tenant.OHS.Remote.TenantMiddleware.InvokeAsync(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
HEADERS
=======
Accept: application/json, text/plain, */*
Connection: close
Host: localhost:5000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.62
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOjEsIm5iZiI6MTY3MDI1Mzg5NywiZXhwIjoxNjcwNzkzODk3LCJpYXQiOjE2NzAyNTM4OTcsImlzcyI6Imh0dHBzOi8vbG9jYWxob3N0OjQ0MzExIiwiYXVkIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6NDQzMTEifQ.flZzSdAlxSYJv1fQJSYvz2e9J5wZfzyP9yw3bJDQt_Q
Cookie: userInfo=%7B%22id%22%3A%2200000000-0000-0000-0000-000000000000%22%2C%22code%22%3A%220112222111%22%2C%22fullName%22%3A%22superadmin%22%2C%22userName%22%3A%22superadmin%22%2C%22ip%22%3A%22192.168.1.146%22%2C%22isExpire%22%3Afalse%2C%22loginTime%22%3A%222022-11-30%2020%3A17%3A41%22%2C%22nickName%22%3A%22superadmin%22%2C%22token%22%3A%22MDY3OCs5NjY1ZWU1MTliNGQtYTYwYS02MDM0LWI0ZTgtODY3MzUyNGY%3D%22%2C%22extData%22%3A%22%22%2C%22productCode%22%3A%22MES%22%7D; redirectUrl=%2Fpps%2Fpps-entry%2FAssemblyShop; .AspNetCore.Antiforgery.nTsCt8sg9tA=CfDJ8LwPEyRAHkdAt0b1jNh6H_zSLNom3PS78Lrh73xG05etXUEzj7fjUqUDZlu4PC42B3vjL6XuEShT_Rn8wt4IhOAIi13Cjkc2dNZlb-WrjxfIx3f1cxu36Yl7cwNQzBk4vbvNAa0yrk8AXxcuBof6z84; .AspNetCore.NcfAdminAuthorizeScheme=CfDJ8LwPEyRAHkdAt0b1jNh6H_ygrzFoqXZDDi4qayfXqS7XbCIWByLmb4RTQNmVkU4wkX_2gMibgaKeh_xDXrzU5syJJ1qiR-FUd_eAehCKog5cLv4wGa9ZyOjeZbXVSPXXwC7I2rNuhEqCGmwL_nnOD1xxZ9aiifLNWelqdHgP633kXp0J1ZcJ_nDlOwPkLT2nn7bCBrAmbYAZOJBdna6cqe4Mve5l-DMoDzljAudPUemJMoRxpgCoOK3LAbaNpmaKv9dS1UslbTjWttmo7tXniFbjY7LANYvSLvagizJBf2Eoa0efShz3mcvHQPx0gkwhnlgggWdtX9K-KZbOIgYp8rCdXFddD34ziYPg6cadGgA1Y6og1-EJjLLndoDUVJX-dgKv-zuSyv4q8VP9QHri7vLt4J6tan6g2c2r_kHojrMli8GWuV1lszKBhU4vYSMnBMoVMopQjZu729RV9fk0L7RAe-l98rZnCur5zkrvfn1GnFCt01ts2wY_0W7VmT8UXYKfCDwzuMvb23Se4kcBsRJrZqsDf9bkB8XU8AvBWVvwt_qWhhkpV1Dfd-sFa_KZGw; Admin-Token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOjEsIm5iZiI6MTY3MDI1Mzg5NywiZXhwIjoxNjcwNzkzODk3LCJpYXQiOjE2NzAyNTM4OTcsImlzcyI6Imh0dHBzOi8vbG9jYWxob3N0OjQ0MzExIiwiYXVkIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6NDQzMTEifQ.flZzSdAlxSYJv1fQJSYvz2e9J5wZfzyP9yw3bJDQt_Q; Admin-Role=[%22administrator%22]
Referer: http://localhost:9527/
x-forwarded-host: localhost:9527
x-forwarded-proto: http
x-forwarded-port: 9527
x-forwarded-for: 127.0.0.1
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin
sec-ch-ua-platform: "Windows"
sec-ch-ua-mobile: ?0
sec-ch-ua: "Microsoft Edge";v="107", "Chromium";v="107", "Not=A?Brand";v="24"
warn: Microsoft.AspNetCore.Mvc.Formatters.XmlSerializerOutputFormatter[1]
An error occurred while trying to create an XmlSerializer for the type 'Senparc.Ncf.Core.AppServices.AppResponseBase`1[[System.Collections.Generic.List`1[[Senparc.Areas.Admin.Domain.Dto.SystemConfigDto, Senparc.Areas.Admin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
System.InvalidOperationException: There was an error reflecting type 'Senparc.Ncf.Core.AppServices.AppResponseBase`1[System.Collections.Generic.List`1[Senparc.Areas.Admin.Domain.Dto.SystemConfigDto]]'.
---> System.InvalidOperationException: There was an error reflecting property 'Data'.
---> System.InvalidOperationException: Member AppResponseBaseOfListOfSystemConfigDto.Data of type System.Collections.Generic.List`1[Senparc.Areas.Admin.Domain.Dto.SystemConfigDto] hides base class member AppResponseBase.Data of type System.Object. Use XmlElementAttribute or XmlAttributeAttribute to specify a new name.
at System.Xml.Serialization.StructMapping.FindDeclaringMapping(MemberMapping member, StructMapping& declaringMapping, String parent)
at System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(StructModel model, String ns, Boolean openModel, XmlAttributes a, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportElement(TypeModel model, XmlRootAttribute root, String defaultNamespace, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(Type type, XmlRootAttribute root, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at Microsoft.AspNetCore.Mvc.Formatters.XmlSerializerOutputFormatter.CreateSerializer(Type type)
warn: Microsoft.AspNetCore.Mvc.Formatters.XmlSerializerOutputFormatter[1]
An error occurred while trying to create an XmlSerializer for the type 'Senparc.Ncf.Core.AppServices.AppResponseBase`1[[Senparc.Areas.Admin.Domain.Dto.SystemConfigDto, Senparc.Areas.Admin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
System.InvalidOperationException: There was an error reflecting type 'Senparc.Ncf.Core.AppServices.AppResponseBase`1[Senparc.Areas.Admin.Domain.Dto.SystemConfigDto]'.
---> System.InvalidOperationException: There was an error reflecting property 'Data'.
---> System.InvalidOperationException: Member AppResponseBaseOfSystemConfigDto.Data of type Senparc.Areas.Admin.Domain.Dto.SystemConfigDto hides base class member AppResponseBase.Data of type System.Object. Use XmlElementAttribute or XmlAttributeAttribute to specify a new name.
at System.Xml.Serialization.StructMapping.FindDeclaringMapping(MemberMapping member, StructMapping& declaringMapping, String parent)
at System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(StructModel model, String ns, Boolean openModel, XmlAttributes a, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportElement(TypeModel model, XmlRootAttribute root, String defaultNamespace, RecursionLimiter limiter)
at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(Type type, XmlRootAttribute root, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at Microsoft.AspNetCore.Mvc.Formatters.XmlSerializerOutputFormatter.CreateSerializer(Type type)
NcfUninstallException from TenantMiddleware
2022-12-05 23:27:44 2022-12-05 15:27:44.214 UTC [338] ERROR: relation "TenantInfos" does not exist at character 140
2022-12-05 23:27:44 2022-12-05 15:27:44.214 UTC [338] STATEMENT: SELECT t."Id", t."AddTime", t."AdminRemark", t."Enable", t."Flag", t."Guid", t."LastUpdateTime", t."Name", t."Remark", t."TenantKey"
2022-12-05 23:27:44 FROM "TenantInfos" AS t
2022-12-05 23:27:44 WHERE NOT (t."Flag") AND t."Enable"
2022-12-05 23:29:17 2022-12-05 15:29:17.265 UTC [48] LOG: checkpoint starting: time
2022-12-05 23:29:22 2022-12-05 15:29:22.365 UTC [48] LOG: checkpoint complete: wrote 50 buffers (0.3%); 0 WAL file(s) added, 0 removed, 0 recycled; write=5.012 s, sync=0.038 s, total=5.100 s; sync files=38, longest=0.007 s, average=0.001 s; distance=197 kB, estimate=3151 kB