Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tony 104 posts 162 karma points
    Mar 31, 2015 @ 16:14
    Tony
    0

    Non Serializable Model

    [SerializationException: Type 'Umbraco.Forms.Mvc.Models.FormViewModel' in Assembly 'Umbraco.Forms.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.]

    We are using session in SQLServer mode but this model isnt serializable. Is this by design or has it been missed off? 

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 31, 2015 @ 16:17
    Tim Geyssens
    0

    I must say that's a we haven't tested that scenaria (session in SQLServer mode) but I'm happy to make the changes required to make it work, is it just marking that class as serializable?

  • Tony 104 posts 162 karma points
    Mar 31, 2015 @ 16:21
    Tony
    0

    Yes, just mark any class you use in sessions as serializable and it shoudl be all good :)

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 31, 2015 @ 16:24
    Tim Geyssens
    0

    Owkey will update (should have an nightly build ready for you tomorrow then, will ping you here)

  • Tony 104 posts 162 karma points
    Mar 31, 2015 @ 16:29
    Tony
    0

    Thats great, thank you :)

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Apr 01, 2015 @ 10:44
    Tim Geyssens
    0

    Ok marked all the view models as serializable, you can download the latest nightly here http://nightly.umbraco.org/UmbracoForms/nightlies/

  • Tony 104 posts 162 karma points
    Apr 01, 2015 @ 11:08
    Tony
    0

    Thanks Tim, absolute life saver. :)

  • Tony 104 posts 162 karma points
    Apr 01, 2015 @ 11:39
    Tony
    0

    Hi Tim, 

    All of the objects need to be serializable to work, looks like some of the child classes are not set up as serializable. Would it be possible to be a contributer for this so I can add teh code and get it working so you can merge it in? We have clients screaming at us for the upgrade  to 7.2 and the forms area is the only thing holding it up at the moment.

     

    [SerializationException: Type 'Umbraco.Forms.Core.FieldConditionRule' in Assembly 'Umbraco.Forms.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.]

     

    Thanks

    Tony

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Apr 01, 2015 @ 11:48
    Tim Geyssens
    0

    Ok thought I did all the child classes, contribution isn't possible as it's a closed source project sorry :(

    Will just setup the same environment as you then with session in sql server mode

    Update later today

    Cheers,

  • Tony 104 posts 162 karma points
    Apr 01, 2015 @ 11:50
    Tony
    0

    Thats a shame, could have reduced some of your workload. Ill eagerly keep an eye on this for the update :)

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Apr 01, 2015 @ 13:22
    Tim Geyssens
    0

    Ok can you check latest nightly, made sure all child classes are marked (haven't tested the session sql server mode since my iis as acting up) 

     

  • Tony 104 posts 162 karma points
    Apr 01, 2015 @ 13:46
    Tony
    0

    Great! All working! I have a question around teh validation but I will discuss that in a differnt thread.

     

    Thank you so much for the swift action

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Apr 01, 2015 @ 13:47
    Tim Geyssens
    0

    Great :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies