Boolean System. Runtime. Serialization. DataContractAttribute. get_IsReference ()

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.