System.Data.Linq.Binary is not XmlSerializable
Posted by: Rick Strahls WebLog,
on 17 Jul 2009 |
View original | Bookmarked: 0 time(s)
So I ran into an annoying problem today with an entity that has a timestamp. When imported LINQ to SQL will create a Binary type for this the timestamp and as it turns out this type does not serialize via XML. This means ASMX Web services fail as well as plain old XmlSerializer style serialization. Youll get: System.Data.Linq.Binary cannot be serialized because it does not have a parameterless constructor. Uh, how can you build a new type for a data component that doesnt serialize natively? The...