Exception:Error getting value from '日期' on '笔记数据2'.该字符串未被识别为有效的 DateTime。

报错信息

JsonSerializationException: Error getting value from '日期' on '笔记数据2'.
--LineNumber: 0
--LinePosition: 0
StackTrace:
   在 Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
   在 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)
   在 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   在 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
   在 Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
   在 Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)
   在 CDebug.SerializeObject_Msg(Object obj)
   在 DynamicClass.OnWinDataRecv()
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

FormatException: 该字符串未被识别为有效的 DateTime。
StackTrace:
   在 System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style, TimeSpan& offset)
   在 System.DateTimeOffset.ParseExact(String input, String format, IFormatProvider formatProvider, DateTimeStyles styles)
   在 F.GenDateDis(String date)
   在 笔记数据2.get_日期()
   在 Get日期(Object )
   在 Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)

 

解决方法

暂无解决方案。

相关信息
0 查看
2025-11-14 10:30
Quicker版本
版本 反馈次数