Yes I ran into this as well when designing custom controls... it's very irritating. I looked at the [Serializable] and [NonSerialized] attribute tags and was able to get the error to go away, but sometimes it comes back.
Try googling those and see if they help you. Sorry I can't really provide you a better solution, I don't really understand it fully myself yet.
Would you don't mind sharing what the solution was? It helps anyone else watching this thread with a similar issue, or someone who stumbles across this thread months in the future.
Comment