我有一个返回JSON的WCF服务.
从今天早上起,我开始收到以下错误:
DateTime values that are greater than DateTime.MaxValue or smaller than DateTime.MinValue when converted to UTC cannot be serialized to JSON
Run Code Online (Sandbox Code Playgroud)
仅仅为了测试,我将今天的日期传递给使用JSON返回的所有DateTime变量,但我仍然得到相同的错误.
代码大约是2k行,所以我认为在这里发布它没有任何价值.
任何想法如何解决?