I am using the ASP.NET MVC REST kit and all works great but when I try to return an array of objects I get the below error. Following the movie sample in the kit I couldn't find any references to them using KnownTypeAttribute. I have tried returning the object array via a list, array and as serializeable.
Examples
return View(ats.GetAssets(folderid).AsSerializable());
return View(ats.GetAssets(folderid));
Type 'Shared.BO.Asset' with data contract name 'Asset:http://schemas.datacontract.org/2004/07/Shared.BO' is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.