mohsinali1317
mohsinali1317

Reputation: 4425

Microsoft.WindowsAzure.Storage.Table.TableEntity is not marked as serializable

Type 'Microsoft.WindowsAzure.Storage.Table.TableEntity' in Assembly 'Microsoft.WindowsAzure.Storage, Version=4.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable.

I am trying to use Redis Cache and when I try to serialize before storing the object I get the above error. I have searched it online but haven't found any solution.

What should I do?

Upvotes: 1

Views: 667

Answers (2)

Peter Marino - MSFT
Peter Marino - MSFT

Reputation: 426

As indicated in the changelog for the Storage Client Library version 4.0.1:

Tables: Removed Serialized attribute and ISerializable implementation from TableEntity. Implement ITableEntity for your custom entities if you need either.

Please implement ITableEntity if you need the Serialized attribute.

Upvotes: 1

K.J.
K.J.

Reputation: 230

According to this, the issue has been fixed in current versions:

Table entities not being serialized properly after upgrade to Microsoft.WindowsAzure.Storage 4.0.0

Upvotes: 0

Related Questions