WCF Proxy generation
Posted
by dragonfly
on Stack Overflow
See other posts from Stack Overflow
or by dragonfly
Published on 2009-11-25T12:18:45Z
Indexed on
2010/03/21
13:01 UTC
Read the original article
Hit count: 601
Hi,
I'm generating proxy using svcutil tool. My contract methods return objects of particular type. However generated proxy client interface has return value of type object. What is more I get exception with message:
System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail] : The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:name. The InnerException message was 'XML 'Element' 'http://tempuri.org/:name' does not contain expected attribute 'http://schemas.microsoft.com/2003/10/Serialization/:Type'. The deserializer has no knowledge of which type to deserialize. Check that the type being serialized has the same contract as the type being deserialized.'. Please see InnerException for more details.
Any ideas what's going on?
© Stack Overflow or respective owner