on wcf type is not expected even though its on ServiceKnownType(typeof(...))
Posted
by yoni
on Stack Overflow
See other posts from Stack Overflow
or by yoni
Published on 2010-06-03T14:29:23Z
Indexed on
2010/06/03
14:34 UTC
Read the original article
Hit count: 368
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 the datacontractSerializer KnownTypes
what reason can it be ?.
© Stack Overflow or respective owner