Trying to connect to a windows azure queue from a windows service (ie. not running in azure, just on my desktop, for now, but eventually on a self-hosted windows server).
The connection string generated by the dashboard is in the following form:
Endpoint=sb://MyServiceBus.servicebus.windows.net/;SharedAccessKeyName=MySasName;SharedAccessKey=*****
I'm trying to initialize the CloudStorageAccount
, but am receiving a format exception (as noted in the title).
string str = ConfigurationManager.AppSettings["StorageConnectionString"];
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
str);
This seems to match all of the documentation ... can anyone clear up what might be going on?
DefaultEndpointsProtocol=https;AccountName=[account name];AccountKey=[account key]
. You can get account name/key from Windows Azure Portal. HTH. – Gaurav Mantri