I have been having this problem and been pulling my hair out over it. I have the followin error:
Exception Details: System.NotSupportedException: Can
In the code you posted, the type of CustomerAddresses is IList. That's an interface. Like the error message says, you can't serialize an interface.
CustomerAddresses
IList