Azure October 2012 SDK – bug in CloudStorageAccount.Parse

I found a bug in the October release of the Azure SDK.

Back to blog

If you try to use the CloudStorageAccount.Parse() method with a connection string of UseDevelopmentServer=true, the October release of the Azure SDK (2.0.0.0) throws a ‘Key not present in dictionary’ exception.

This is a bug in the SDK (it is expecting the DevelopmentStorageProxyUri in the connection string). The workarounds are,

1. Dont use the emulator
2. Setup a proxy and pass the DevelopmentStorageProxyUri as part of the connection string
3. Use the CloudStorageAccount.DevelopmentStorageAccount property instead

Number 3 is easiest for a quick workaround. I ended up doing this,

Pretty lame but it got everyone up and running with minimal environment changes.