This error occurs first in ASP. NET use EXT. NET1.0 (pay attention to the version, it seems that an error will be reported in version 1.0, but I have never encountered it in Version 0.8). If it is available at home, the following error will be reported when I bring it to the company: no method is found: "Boolean System. runtime. serialization. dataContractAttribute. get_IsReference () "first comes to mind the Framework issue. Check the event manager and find the warning process information:
Process ID 1724
Process name:
WebDev. WebServer. EXE
Account name: DRAGONAdministrator
Exception information:
Exception type:
MissingMethodException
Exception Message: method not found: "Boolean
System. Runtime. Serialization. DataContractAttribute. get_IsReference ()".
Solution:
Install net 3.5 sp1 to solve the problem,
The problem is that the newton library is used when the JSON interpreter is written, and when the code is converted, that is, when the jSON text information is converted to the net class, the problem of being unable to identify the object class has always occurred. Even when I write the object as the original object, I think there is still a problem, so it is strange that I have always thought that there is a problem with my writing, or I didn't understand enough about newton's library. I tried a variety of writing methods, and I had to write them one by one based on class attributes. I thought it was a stupid method. So I want to solve this problem.
Continue to G and find the possible problems. My VS2008 uses net 3.5 and has not been upgraded to SP1.
After the upgrade, it took me three hours to solve the problem.
Method 2
Download and Install. framework 3.5 sp1 and restart the machine.