I have a fairly standard setup with simply POCO classes
public class Project { public int ProjectId { get; set; } public string Name { get; set; }
I had the same issue and the cause was a POCO class that had a property of type Type.
Type