WCF: Configuring Known Types
I guess I have found the answer now. The configuration file I posted above looks like this: <?xml version=”1.0″ encoding=”utf-8″ ?> <configuration> <system.runtime.serialization> <dataContractSerializer> <declaredTypes> <add type=”Person, WCFWithNoLibrary, Version=1.0.0.0,Culture=neutral,PublicKeyToken=null”> <knownType type=”Employee, WCFWithNoLibrary, Version=1.0.0.0,Culture=neutral, PublicKeyToken=null” /> </add> </declaredTypes> </dataContractSerializer> </system.runtime.serialization> <system.serviceModel> ……. </system.serviceModel> </configuration> What I just added was, the Namespace of the Person class and … Read more