Recently, when the server was re-installed, it simply reorganized all the source code and started to work normally. Later, it was found that an error was reported every time a screen was modified.
We tracked and found that data of the datetime, smartdate, and other time types was changed during serialization: Date \ "123456. When the JSON conversion is performed, the conversion error of the Time-type data is returned. The first thought is that there is a problem with the data, and then we found that all the pictures are this problem!
I guess it should be that when the source code is maintained and organized, a dll version may be called incorrectly, which leads to this problem. Naturally, I think it should be
The version of newtonsoft. JSON. dll file is incorrect. However, we compared the version and found that there is no problem! Be careful !!!!
Later, I used another computer to run the previous program and found that this problem was not found. I re-run all the current Code, but there was still a problem!
Later, I replaced the DLL of other projects referenced by the web project with the old DLL, and found that the Program reported an error. I looked at it carefully and mentioned it.
Newtonsoft. JSON. dll, I think it should still be the problem of this DLL, So I carefully checked it and found that it was from other class libraries referenced by the web project.
Inconsistent newtonsoft. JSON. dll !!!
This problem is actually well solved and well investigated. However, due to my carelessness, I spent nearly four hours searching !!!
The first is to remind other children's shoes whose projects are organized and upgraded. If the overall and all picture errors are found, they are basically dll version problems.
Second, warn yourself at any time. Be careful when you encounter problems.
Date \ "123456 troubleshooting