CSLA .NET

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

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • Avoiding Serialization of events

    rated by 0 users
    Answered (Not Verified) This post has 0 verified answers | 2 Replies | 1 Follower

    Not Ranked
    4 Posts
    Mudit posted on Mon, May 16 2011 10:53 AM

    Hi all
     
    I am working on a application following MVVM, there are lot of properties directly binded to the Business Base model layer( like - Binding ="ViewModelProperty.ModelProperty.Text" )
     
    when i try to save the business object the following error is thrown:
     
    Type 'System.ComponentModel.PropertyChangedEventManager' in Assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable.
     
    I understand that there might be few (INotify)event subscriptions with the object which wont allow it to serialize.
     
    I cant use [field:NonSerialized] as we dont have access the code for csla.
     
    Has anyone faced this type of scenario ever? if so how did you get rid of it ?
     
    thanks.
     
    Mudit

    All Replies

    Not Ranked
    4 Posts
    Mudit replied on Mon, May 16 2011 11:34 AM

    and when i use ISerializable

     

    Type 'Csla.Core.BusinessBase+BypassPropertyChecksObject' in Assembly 'Csla, Version=3.7.0.0, Culture=neutral, PublicKeyToken=93be5fdc093e4c30' is not marked as serializable.

     

    this is thrown

    Top 10 Contributor
    9,475 Posts

    Use of ISerializable is not supported with CSLA .NET.

    Rocky

    Page 1 of 1 (3 items) | RSS

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