knowntype

Why are we getting a WCF "Framing error" on some machines but not others

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...

on wcf type is not expected even though its on ServiceKnownType(typeof(...))

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 ...

C# WCF: When is it appropriate to use the KnownType attribute?

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...