If a OperationContract is defined to return IList<T> where T is a type defined by a DataContract, and an array is returned, then WCF throws an ExecutionEngineException.Looks similar to the following issue, but more general as it doesn't require the same conditions.https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=391260&wa=wsignin1.0This is with the final vesion of .NET Framework 3.5 SP1, not the beta but there was no option to select this in the feedback form.I am looking for advice on best practices to return collections from WCF web services. To date I usually return as IEnumerable<T> or IList<T> for flexibility, but this exposes me to the bug described here and in the above linked issue.
Product Version