I\'m looking for the best approach to share types (the actual classes, not proxies) between a WCF service and a client. To that end, I defined the classes in a separate assembl
I did two things in the same step. Not sure if one or both resolved the problem:
My issue with VS2010 SP1 was trying to use a class that derived from Dictionary<T,U>
with a CollectionDataContract
attribute. Seems VS won't reuse the type... I also tried Eric's suggestion above, but it didn't work.
Had the same issue, but the I forgot to build assembly with DataContracts for client and thus it was generating it's own contracts. Once I've rebuilt the assembly - it reused them.