Azure Service Bus Queue error: “No valid combination of account information found”

為{幸葍}努か 提交于 2020-01-05 04:16:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!