CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

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

rated by 0 users
Not Answered This post has 0 verified answers | 2 Replies | 0 Followers

Top 150 Contributor
49 Posts
Gort posted on Wed, Apr 11 2012 9:33 AM

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.

All Replies

Top 150 Contributor
49 Posts
Gort replied on Wed, Apr 18 2012 2:04 PM

Frye? Anyone? 

Top 150 Contributor
49 Posts
Gort replied on Thu, Apr 19 2012 10:13 AM

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

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

Page 1 of 1 (3 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems