简体   繁体   English

Microsoft.WindowsAzure.Storage.Table.TableEntity未标记为可序列化

[英]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.

相关问题 Microsoft.Azure.Cosmos.Table 和 Microsoft.WindowsAzure.Storage 之间的 ExecuteQuerySegmentedAsync 性能显着下降 - Significant performance degration on ExecuteQuerySegmentedAsync between Microsoft.Azure.Cosmos.Table and Microsoft.WindowsAzure.Storage Azure function,缺少 Microsoft.WindowsAzure.Storage - Azure function, Microsoft.WindowsAzure.Storage missing OperationContext 使用情况 (Microsoft.WindowsAzure.Storage) - OperationContext usage (Microsoft.WindowsAzure.Storage) 如何将字符串转换为 Microsoft.WindowsAzure.Storage.Table.ITableEntity? - How can i convert a string to Microsoft.WindowsAzure.Storage.Table.ITableEntity? 升级到Microsoft.WindowsAzure.Storage 4.0.0后,表实体未正确序列化 - Table entities not being serialized properly after upgrade to Microsoft.WindowsAzure.Storage 4.0.0 没有来自的装箱转换或类型参数转换 <T> 到&#39;Microsoft.WindowsAzure.Storage.Table.ITableEntity&#39; - There is no boxing conversion or type parameter conversion from <T> to 'Microsoft.WindowsAzure.Storage.Table.ITableEntity' Microsoft.WindowsAzure.Storage.dll中出现“Microsoft.WindowsAzure.Storage.StorageException”类型的第一次机会异常 - A first chance exception of type 'Microsoft.WindowsAzure.Storage.StorageException' occurred in Microsoft.WindowsAzure.Storage.dll 使用 TableEntity(Azure 表存储)的最佳实践——类的解耦 - Best practice of using TableEntity (Azure table storage) - decoupling of classes Azure表存储的批处理程序,用于处理继承TableEntity的类 - Batch processor for Azure Table Storage that handles classes inheriting TableEntity 在引用Microsoft.WindowsAzure.Storage.DLL时生成错误 - Build error on referencing Microsoft.WindowsAzure.Storage.DLL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM