Remoting posts

As Doug indicated I was going to post my deranged .NET Remoting ramblings in my blog. But then John had created a cool blog especially for our Remoting users. So I’ll start putting my Remoting posts there.


All About KnownTypes

<This turned out to be longer than what I had intended. Sorry about it>   One of the common errors in Deserialization is “Element ‘‘’‘ contains data of the ‘‘ data contract. The deserializer has no knowledge of any type that maps to this contract. Add the type corresponding to ‘Circle’ to the list of…


Why prevent DataContract + IXmlSerializable

I left one thing unsaid in the serialization rules and Aaron’s sharp eyes caught it promptly. As he mentioned in his blog, mixing interface programming model (such as IXmlSerializable or ISerializable) with DataContract programming model is disallowed in V1.  Here is an example of such a class.   [DataContract] public class XmlDataContractType : IXmlSerializable {     [DataMember]     public…


Preserving Object Reference in WCF

By default object references are not preserved by the DataContractSerializer; Values of an object referenced multiple times is serialized multiple times. If the object is part of mutual (cyclic) reference (e.g. circular linked list) an exception is thrown during serialization.   DataContractSerializer can be made to preserve object reference by passing true for parameter PreserveObjectReference…


WCF Serialization Programming Model

DataContract is the default serialization programming model for WCF. However WCF supports more than just the types marked wth DataContract attribute. It supports serialization of the following kinds of types in the default mode. CLR built-in types Byte array, DateTime, TimeSpan, GUID, Uri, XmlQualifiedName, XmlElement and XmlNode array [This includes XElement and XNode array from…


Hello, world!

Here is yet another Indigo blog. Having worked on ‘Indigo’, now known as WCF, for four years I am excited to talk about it. My name is Sowmy Srinivasan and I am a developer in the WCF team. My team works on serialization of data and management of related metadata. The intent of this blog is to clarify…