Monday, November 23, 2009

Type 'DataContract' is not defined

This error can be resolved by adding a reference to the .net System.Runtime.Serialization assemly and also importing this namespace in the file where applicable.

Also, applies to Type 'DataMember' is not defined.

4 comments:

Anonymous said...

Thx, I would never have thought of that since the import was working. Saved me lots of time!

Andre said...

Glad it helped.

Alexander Williamson said...

Yep, worked for me, it was the reference that I needed.

Anonymous said...

Thanks dude, work for me!! greetings from Chile!