Getting error trying to pass MobileList<short> to Fetch method using Silverlight

Getting error trying to pass MobileList<short> to Fetch method using Silverlight

Old forum URL: forums.lhotka.net/forums/t/11293.aspx


Gort posted on Wednesday, April 11, 2012

I have a MobileList<Int16> in my criteria class.  I am passing a MobileList<Int16> to the Silverlight factory method and then populating a criteria class which is then passed to the Fetch method ( dp.BeginFetch(criteria); ).  When I attempt to do this, I get the following error:

Type 'Csla.Core.MobileList`1[[System.Int16, mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]' with data contract name 'ArrayOfshort:http://schemas.microsoft.com/2003/10/Serialization/Arrays' 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.

Am I doing something incorrectly?  What am I missing?

Thanks in advance for any help.

Gort replied on Wednesday, April 18, 2012

Frye? Anyone? 

Gort replied on Thursday, April 19, 2012

Turns out this is pretty much the same issue as was answered here:

http://forums.lhotka.net/forums/p/10681/49988.aspx

Copyright (c) Marimer LLC