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

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: XLinq | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2615 | Hits: 115

Similar Posts

  • Introducing Versatile DataSources more
  • Ambiguous References in DefaultWsdlHelpGenerator.aspx more
  • How to display data from different tables using one data source more
  • My History of Visual Studio (Part 7) more
  • An alternative to Crystal more
  • Building a class browser with Microsoft Ajax 4.0 Preview 5 more
  • How to retire (respectfully) legacy systems more
  • Project Turing: Beginning RIA Services more
  • Chat room questions from the EF Tips & Tricks webcast more
  • Open SQL Port for specific IP by ASP.NET Website more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD