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.
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.
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();
- Value of
StorageConnectionString
isUseDevelopmentStorage=true
. - Container is lowercase, letters only (e.g. 'pictures').
- I run Visual Studio 2012 as administrator.
Any help would be much appreciated!