Cannot serialize member…. because it is an interface

In the code you posted, the type of CustomerAddresses is IList<CustomerAdress>. That’s an interface. Like the error message says, you can’t serialize an interface.

Leave a Comment