具体报错内容见下:
System.AggregateException: One or more errors occurred. ---> System.PlatformNotSupportedException: Operation is not supported on this platform.
at Newtonsoft.Json.Utilities.DynamicReflectionDelegateFactory.CreateDynamicMethod (System.String name, System.Type returnType, System.Type[] parameterTypes, System.Type owner) [0x00018] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Utilities.DynamicReflectionDelegateFactory.CreateDefaultConstructor[T] (System.Type type) [0x00010] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.GetDefaultCreator (System.Type createdType) [0x00005] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.InitializeContract (Newtonsoft.Json.Serialization.JsonContract contract) [0x00093] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract (System.Type objectType) [0x00030] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract (System.Type objectType) [0x00118] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].GetOrAdd (TKey key, System.Func`2[T,TResult] valueFactory) [0x00034] in <44afb4564e9347cf99a1865351ea8f4a>:0
at Newtonsoft.Json.Utilities.ThreadSafeStore`2[TKey,TValue].Get (TKey key) [0x00000] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract (System.Type type) [0x0000b] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContractSafe (System.Object value) [0x00016] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00028] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.JsonSerializer.SerializeInternal (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00253] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.JsonSerializer.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.JsonConvert.SerializeObjectInternal (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00028] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Newtonsoft.Json.Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x0000e] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Newtonsoft.Json.Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at TencentCloud.Common.AbstractClient.BuildRequestPayload (TencentCloud.Common.AbstractModel request) [0x00038] in <87f0e8c9cce744958f2c1c5cb0030291>:0
at TencentCloud.Common.AbstractClient+<RequestV3>d__37.MoveNext () [0x0002a] in <87f0e8c9cce744958f2c1c5cb0030291>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <44afb4564e9347cf99a1865351ea8f4a>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <44afb4564e9347cf99a1865351ea8f4a>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <44afb4564e9347cf99a1865351ea8f4a>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <44afb4564e9347cf99a1865351ea8f4a>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <44afb4564e9347cf99a1865351ea8f4a>:0
at TencentCloud.Common.AbstractClient+<InternalRequest>d__35.MoveNext () [0x001d0] in <87f0e8c9cce744958f2c1c5cb0030291>:0
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <44afb4564e9347cf99a1865351ea8f4a>:0
at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <44afb4564e9347cf99a1865351ea8f4a>:0
at System.Threading.Tasks.Task.Wait () [0x00000] in <44afb4564e9347cf99a1865351ea8f4a>:0
at TencentCloud.Common.AbstractClient.InternalRequestSync (TencentCloud.Common.AbstractModel request, System.String actionName) [0x0002e] in <87f0e8c9cce744958f2c1c5cb0030291>:0
at TencentCloud.Facefusion.V20181201.FacefusionClient.FaceFusionSync (TencentCloud.Facefusion.V20181201.Models.FaceFusionRequest req) [0x00004] in <87f0e8c9cce744958f2c1c5cb0030291>:0
at TencentCloudExamples.FaceFusion.Main (System.String base64, CameraTakePicture+PhotoType photoType, UnityEngine.UI.Image showImage, System.Action`2[T1,T2] callBack) [0x00110] in <ca78b80947e64d12a12bed1a0b974c06>:0
---> (Inner Exception #0) System.PlatformNotSupportedException: Operation is not supported on this platform.
at Newtonsoft.Json.Utilities.DynamicReflectionDelegateFactory.CreateDynamicMethod (System.String name, System.Type returnType, System.Type[] parameterTypes, System.Type owner) [0x00018] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Utilities.DynamicReflectionDelegateFactory.CreateDefaultConstructor[T] (System.Type type) [0x00010] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.GetDefaultCreator (System.Type createdType) [0x00005] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.InitializeContract (Newtonsoft.Json.Serialization.JsonContract contract) [0x00093] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract (System.Type objectType) [0x00030] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract (System.Type objectType) [0x00118] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].GetOrAdd (TKey key, System.Func`2[T,TResult] valueFactory) [0x00034] in <44afb4564e9347cf99a1865351ea8f4a>:0
at Newtonsoft.Json.Utilities.ThreadSafeStore`2[TKey,TValue].Get (TKey key) [0x00000] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract (System.Type type) [0x0000b] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContractSafe (System.Object value) [0x00016] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00028] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.JsonSerializer.SerializeInternal (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00253] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.JsonSerializer.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.JsonConvert.SerializeObjectInternal (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00028] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Newtonsoft.Json.Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x0000e] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Newtonsoft.Json.Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <b1d2c1d6f4dd47bea2964bdd6464f67d>:0
at TencentCloud.Common.AbstractClient.BuildRequestPayload (TencentCloud.Common.AbstractModel request) [0x00038] in <87f0e8c9cce744958f2c1c5cb0030291>:0
at TencentCloud.Common.AbstractClient+<RequestV3>d__37.MoveNext () [0x0002a] in <87f0e8c9cce744958f2c1c5cb0030291>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <44afb4564e9347cf99a1865351ea8f4a>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <44afb4564e9347cf99a1865351ea8f4a>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <44afb4564e9347cf99a1865351ea8f4a>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <44afb4564e9347cf99a1865351ea8f4a>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <44afb4564e9347cf99a1865351ea8f4a>:0
at TencentCloud.Common.AbstractClient+<InternalRequest>d__35.MoveNext () [0x001d0] in <87f0e8c9cce744958f2c1c5cb0030291>:0 <---
相似问题