search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Serialize ResourcesCollection

Asked by sarra bnh
7 years ago.

After I added sessionState in StateServer mode in the web.config. I encountered System.Runtime.Serialization.SerializationException in the serialization of ResourceCollection. The text of the error is: The type 'DayPilot.Web.Mvc.ResourceCollection' in the assembly 'DayPilot.Web.Mvc' is not marked as serializable. Can not serialize session state in 'StateServer' mode.
How I Can Serialize ResourceCollection.
Any help please? Many thanks.

Comment posted by Dan Letecky [DayPilot]
7 years ago.

Do you store the ResourceCollection in the Session? That shouldn't normally be necessary.

If you need to store the resources in the Session for some reason you'd probably have to store the source data there and rebuild the ResourceCollection from it when necessary.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.