SyntaxHighlighter

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.

6 comments:

Anonymous said...

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

Unknown 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!

Anonymous said...

That IS odd since the import was allowed without error. Thanks for this quick tip!

Anonymous said...

Super lame....thanks for the tip