Im hosting a WCF service on top of IIS 7.5 & using protobuf-net bindings.
I have a data contract with a Guid type property :
[Datacontract(Namespace = "http://lorem")]
public class MyCustomData {
[DataMember(Order = 0)]
public Guid Id { get; set; } // this ends up as empty, ie. 0000-0000-....
[DataMember(Order = 1)]
public int MyInt { get; set; } // serializes/deserializes ok
}
[ServiceContrac(Namespace = "http://ipsum"), Protobuf.ProtoContract]
public interface IMyService {
...
}
[ServiceBehavior(Namespace = "https://ipsum")]
public class MyService {
public void ServiceMethod(MyCustomData data) {
...
}
}
Issue is that MyCustomData.Id is empty when the call comes through to the service.