Windows Azure Storage 3.0.1.0与Azure Storage Emulator 2.2.0.0兼容问题

在使用Visual Studio 2013和Windows Azure Storage 3.0.1.0时,尝试通过Azure Storage Emulator 2.2.0.0创建Table时遇到(400) Bad Request异常。问题源于API版本不兼容。降级到2.1.0.4版本后,问题得到解决,确认为版本之间的兼容性冲突。解决方案是使用与Emulator兼容的旧版Storage类库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

       两天前,在Visual Studio 2013上通过NuGet安装了 Windows Azure Storage 3.0.1.0 客户端类库,该版本是12月份刚刚更新的,如下图所示。 但是在调用 CreateIfNotExists() 通过本地的 Windows Storage Emulator 2.2.0.0 创建Windows Azure Table时,总是抛出异常 : A first chance exception of type 'Microsoft.WindowsAzure.Storage.StorageException' occurred in Microsoft.WindowsAzure.Storage.dll. Additional Information : The remote server returned an error : (400) Bad Request。所使用创建代码非常简单:

// Creates Changeset table if not exists
var client = StorageAccount.CreateCloudTableClient();
table = client.GetTableReference(tableName);
table.CreateIfNotExists();
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值