Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure October 2012 SDK broke UseDevelopmentStorage=true

Tags:

c#

azure

Has anyone tried the October 2012 Azure sdk with usedevelopmentstorage=true connection string ?

CloudStorageAccount.Parse("UseDevelopmentStorage=true")

throws a 'The given key was not present in the dictionary' exception.

CloudStorageAccount.DevelopmentStorageAccount 

works ok.

Is this a bug in the azure sdk ?

like image 202
Matt Randle Avatar asked Oct 28 '12 16:10

Matt Randle


1 Answers

This is a bug in v2.0.0.0 of the storage SDK (it requires you to use DevelopmentStorageProxyUri in the connection string if you're working with development storage). These are the workarounds:

  • Don’t use the emulator
  • Run fiddler and pass the DevelopmentStorageProxyUri setting: CloudStorageAccount.Parse("UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://ipv4.fiddler");
  • Reference the storage account directly: CloudStorageAccount.DevelopmentStorageAccount;
like image 128
Sandrino Di Mattia Avatar answered Oct 26 '22 23:10

Sandrino Di Mattia