We made a change to the IEntityLoginManager in DevForce 2010 (this was buried on page 28 of the Release Notes). You should now be returning a UserBase or your own IPrincipal. As Kim writes below, GenericPrincipal and GenericIdentity are not native to Silverlight and we no longer define them.
If you subclass from UserBase make sure to mark any properties you need on the client with the [DataMember] attribute so they will serialize.
If you implement your own IPrinicpal, you can make it serializable by doing the following:
- Have the class "implement" the IKnownType interface. (This is a marker interface, so no actual implementation is required.)
- Mark the class with the [DataContract] attribute
- Mark each serializable property with the [DataMember] attribute.
Edited by ting - 09-Jul-2010 at 5:19pm