In my case it was because one of my properties on my DTO was of type ReadOnlyCollection<T> which caught me out. Changing to the type of List<T> fixed it for me as this CAN be assigned to. ReadOnlyCollection cannot!
ReadOnlyCollection<T>
List<T>