且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

每个请求都出现 Azure 400 错误请求

更新时间:2022-03-06 05:55:26

您是否有机会安装昨天发布的最新版本的 Storage Client 库 (3.0.0.0)?这可能是您的代码停止工作的原因之一,因为最新版本的库不能与存储模拟器一起使用(向下滚动到这篇文章的底部:http://blogs.msdn.com/b/windowsazurestorage/archive/2013/11/27/windows-azure-storage-release-introducing-cors-json-minute-metrics-and-more.aspx).如果查看详细的错误消息,您会看到其中一个请求头无效.

Did you by any chance install the latest version of Storage Client library (3.0.0.0) which was released yesterday? That could be one reason why your code stopped working because the latest version of library doesn't work with storage emulator (Scroll down to the bottom of this post: http://blogs.msdn.com/b/windowsazurestorage/archive/2013/11/27/windows-azure-storage-release-introducing-cors-json-minute-metrics-and-more.aspx). If you look at the detailed error message, you will see One of the request headers is invalid.

更新:2014 年 2 月 3 日

请下载支持最新存储客户端库的Storage Emulator 2.2.1 Preview.可以在此处找到有关此版本的更多信息:http://blogs.msdn.com/b/windowsazurestorage/archive/2014/01/27/windows-azure-storage-emulator-2-2-1-preview-release-with-support-for-2013-08-15-version.aspx.

Please download Storage Emulator 2.2.1 Preview which has support for latest storage client library. More information about this release can be found here: http://blogs.msdn.com/b/windowsazurestorage/archive/2014/01/27/windows-azure-storage-emulator-2-2-1-preview-release-with-support-for-2013-08-15-version.aspx.

更新:2014 年 4 月 15 日

如果您使用的是 SDK 版本 2.3,则无需安装 Storage Emulator 2.2.1.Storage Emulator 2.3 版完全支持 Storage 客户端库 3.x.

If you're using SDK Version 2.3, then there's no need for installing Storage Emulator 2.2.1. Storage Emulator in version 2.3 fully supports Storage client library 3.x.