[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?
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?
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.]
Non Serializable Model
We are using session in SQLServer mode but this model isnt serializable. Is this by design or has it been missed off?
Comment author was deleted
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?
Yes, just mark any class you use in sessions as serializable and it shoudl be all good :)
Comment author was deleted
Owkey will update (should have an nightly build ready for you tomorrow then, will ping you here)
Thats great, thank you :)
Comment author was deleted
Ok marked all the view models as serializable, you can download the latest nightly here http://nightly.umbraco.org/UmbracoForms/nightlies/
Thanks Tim, absolute life saver. :)
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.
Thanks
Tony
Comment author was deleted
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,
Thats a shame, could have reduced some of your workload. Ill eagerly keep an eye on this for the update :)
Comment author was deleted
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)
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
Comment author was deleted
Great :)
is working on a reply...