Data Portal Fetch exception - unable to cast object of type

Data Portal Fetch exception - unable to cast object of type

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


jonnyd posted on Wednesday, August 31, 2011

When calling a factory method Class1.GetList() the following exception is returned. 

 

{System.InvalidCastException: Unable to cast object of type 'Csla.Security.UnauthenticatedPrincipal' to type 'Csla.Serialization.Mobile.IMobileObject'.
   at Csla.Serialization.Mobile.MobileFormatter.DeserializeAsDTO(List`1 deserialized)
   at Csla.Serialization.Mobile.MobileFormatter.Deserialize(List`1 data)
   at Csla.Serialization.Mobile.MobileFormatter.Deserialize(XmlReader reader)
   at Csla.Serialization.Mobile.MobileFormatter.Deserialize(Stream serializationStream)
   at Csla.Serialization.Mobile.MobileFormatter.Deserialize(Byte[] data)
   at Csla.Server.Hosts.Silverlight.WcfPortal.Fetch(CriteriaRequest request)
}

Any ideas?  We are running a 4-tier deployment with a Silverlight Client.

Thanks!

 

Copyright (c) Marimer LLC