Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Runtime.Serialization.DataContractAttribute doesn't exist in the namespace System.Runtime.Serialization

I'm doing some WCF work and I don't see why I run into this error.

System.Runtime.Serialization.DataContractAttribute doesn't exist in the namespace

System.Runtime.Serialization

The microsoft documentation clearly shows this hierarchy

System.Object
  System.Attribute
    System.Runtime.Serialization.ContractNamespaceAttribute

Anyone knows what is going on?

like image 324
Mr. Zen Avatar asked Jul 24 '11 10:07

Mr. Zen


1 Answers

Make sure you have added reference to the System.Runtime.Serialization assembly to your project.

like image 198
Darin Dimitrov Avatar answered Sep 18 '22 13:09

Darin Dimitrov