问题
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?
来源:https://stackoverflow.com/questions/19300462/azure-service-bus-queue-error-no-valid-combination-of-account-information-foun