I am getting the error below when I call my WCF service. What am I missing here?
\'System.String[]\' with data contract name
\'ArrayOfstring:http://schemas.
In my case, after adding [Serializable] attribute to the MyEntity class. And then the issue came with serialization of the roles string array.
[Serializable]
[KnownType(typeof(string[]))]
public class MyEntity
{
.........
public string roles[]
.........
}
[KnownType(typeof(string[]))] worked like magic!