在每次请求Azure的400错误的请求 [英] Azure 400 Bad Request on every request

查看:611
本文介绍了在每次请求Azure的400错误的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关某种原因,我DevStorage帐户已停止工作。我收到了 400错误的请求错误的每个请求DevStorage(包括Blob和表)。我可以浏览DevStorage与Azure存储资源管理器,虽然。

For some reason my DevStorage account has stopped working. I get a 400 Bad Request error on every request to DevStorage (both Blob and Table). I can browse DevStorage with Azure Storage Explorer, though.

这是真的很奇怪,因为我不知道任何改变环境的。

This is really strange, because I'm not aware of changing anything to the environment.

我已经重新安装的Azure SDK 2.1(7月2013)。即使在一个干净的安装,这是行不通的。当我部署云服务到Windows Azure,它工作正常。在模拟器中运行它没有。

I have re-installed Azure SDK 2.1 (July 2013). Even after a clean install, it does not work. When I deploy the cloud service to Windows Azure, it works fine. Running it in the emulator doesn't.

实际上我用同样的code作为样本进行连接,但无论如何,我会张贴。

I actually use the same code as the samples to connect, but I'll post it anyway.

// Storage account
var storageAccount = CloudStorageAccount.Parse(
        CloudConfigurationManager.GetSetting("StorageConnectionString"));

// Blob client
var blobClient = storageAccount.CreateCloudBlobClient();

// Container
var cloudContainer = blobClient.GetContainerReference(container);
cloudContainer.CreateIfNotExists();


  • 的值 StorageConnectionString UseDevelopmentStorage = TRUE

  • 集装箱是小写的,只有字母(如'照片')。

  • 我运行Visual Studio 2012年管理员。

  • 任何帮助将是非常美联社preciated!

    Any help would be much appreciated!

    推荐答案

    你任何机会安装最新版本这是昨天发布的存储客户端库(3.0.0.0)的?这可能是原因之一,为什么你的code停止工作,因为库的最新版本不带存储模拟器(向下滚动到这个岗位的底部工作:<一href=\"http://blogs.msdn.com/b/windowsazurestorage/archive/2013/11/27/windows-azure-storage-release-introducing-cors-json-minute-metrics-and-more.aspx\" rel=\"nofollow\">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.

    更新:03 - 2月 - 2014年

    请下载 存储模拟器2.2.1 preVIEW 这有最新的存储客户端库支持。关于这个版本的更多信息可以在这里找到:<一href=\"http://blogs.msdn.com/b/windowsazurestorage/archive/2014/01/27/windows-azure-storage-emulator-2-2-1-$p$pview-release-with-support-for-2013-08-15-version.aspx\" rel=\"nofollow\">http://blogs.msdn.com/b/windowsazurestorage/archive/2014/01/27/windows-azure-storage-emulator-2-2-1-$p$pview-release-with-support-for-2013-08-15-version.aspx.

    更新:15-APR-2014

    如果您正在使用SDK 2.3版本,那么就没有必要安装存储模拟器2.2.1。在2.3版本存储模拟器完全支持存储客户端库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.

    这篇关于在每次请求Azure的400错误的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆