serialization (1)


KnownTypeAttribute serialization error

It can happen that you get this exception while deserializing an object from xml: Type ‘xxxx’ with data contract name ‘xxxxxxxxx’ is not expected. Consider using a DataContractResolver or add any types not known statically to the list of known types – for example, by using the KnownTypeAttribute attribute or by adding them to the […]