+1 vote

We are getting this error:

Type: SystemException

Exception Message:
Type 'Limilabs.Client.IMAP.Imap' in Assembly 'Mail...' is not marked as serializable.

Any idea why it might be coming? We have a property in our User object: ImapClient, which is an instance of Imap from your Dll. Our User class is serializable but still we are getting this error.

by

1 Answer

0 votes
 
Best answer

This is not a bug.

You can not serialize this object. Same as it is impossible to serialize a
network connection. Refrain from trying to serialize it.

by (298k points)
...