Csla.DataPortalException at serialisation of object list #1993
-
Hi everybody, is there a way to serialize a list of string pair objects (used in a combobox) in CSLA wasm. This is working fine in serverside blazor but in wasm I get a notsupported error: Csla.DataPortalException: Die Serialisation von Objekt-Type wird nicht unterstützt. (Serialisation of Objekt-Type is not supported)(System.Collections.Generic.List`1[[Dual_Test.Dal.AppMandant, Dual_Test.Dal, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]) I used to work in server side blazor only. Now I try to run a dual mode app (based on ProjectTracker) and I noticed the problem in the CSB part. I am using CSLA 5.4.0 in .net5. Workaround could be to convert the string pair object to one string and reconvert it when needed. regards
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
CSLA increasingly relies on However, |
Beta Was this translation helpful? Give feedback.
CSLA increasingly relies on
MobileFormatter
to serialize object graphs. Microsoft seems to be slowly getting rid ofBinaryFormatter
, so this is working out well.However,
MobileFormatter
has some restrictions on what it can serialize. You need to use the types inCsla.Core
, such asMobileList
.