serialization issue

Aug 3, 2012 at 9:44 PM

hi - i'm getting a runtime issue with serialization:

System.Runtime.Serialization.SerializationException: Type 'System.Collections.Generic.List`1[[Store24Next.Data.Product, Store24Next.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' with data contract name 'ArrayOfProduct:http://schemas.datacontract.org/2004/07/Store24Next.Data' is not expected. Consider using a DataContractResolver or 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.

I have an object called Product (the project is called Store24Next.Data). it looks (partially) like this:

[Serializable]   
public class Product   
{
public string Product_Id { get; set; }
...
public List<Product> Directors { get; set; }       
public List<Product> Producers { get; set; } 
}

I tried to show (above) that it has Generic Lists of Products included within. I dont know if this is causing the issue. It also references a couple other custom objects - but they are all marked as Serializable as well.

any ideas what's going on here?