We have just found we are getting “framing errors” (as reported by the WCF logs) when running our system on some customer test machine.
It all works ok on our development machines.
We have an abstract base class, with KnownType attributes for all its sub classes. One of it’s subclass is missing it’s DataContract attribute.
Howeve...
i am using third party classes in my service, so i cant edit them.
third party
[Serializable]
Class B : E
[Serialazable]
Class E : A
service
[ServiceKnownType(typeof(B))]
[ServiceKnownType(typeof(E))]
fun(A pic)
client
for some reason :
proxy.fun(object)
throw an exception that B is unexpected and add it to ...
Hi all,
I'm curious about the KnownType attribute, and when to use it--I'm not terribly clear, after reading the MSDN reference. So yes, the attribute communicates type information to the serializer, but when is this needed? Is it appropriate when the class being serialized has references of a base class type, and there are up-cast deri...