[英]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. 程序集“ Microsoft.WindowsAzure.Storage,版本= 4.3.0.0,区域性=中性,PublicKeyToken = 31bf3856ad364e35”中的类型“ Microsoft.WindowsAzure.Storage.Table.TableEntity”未标记为可序列化。
I am trying to use Redis Cache and when I try to serialize before storing the object I get the above error. 我正在尝试使用Redis缓存,当我尝试在存储对象之前进行序列化时,出现上述错误。 I have searched it online but haven't found any solution. 我已经在网上搜索过,但没有找到任何解决方案。
What should I do? 我该怎么办?
As indicated in the changelog for the Storage Client Library version 4.0.1: 如存储客户端库版本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. 如果需要序列化属性,请实现ITableEntity。
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 升级到Microsoft.WindowsAzure.Storage 4.0.0后,表实体未正确序列化
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.