Azure Service Bus Queue Error: "No valid account information combination found"

Trying to connect to the azure windows window from a Windows service (i.e. it doesn’t work in azure mode, just on my desktop, and ultimately on a self-service Windows server).

The connection string created by the information panel looks like this:

Endpoint=sb://MyServiceBus.servicebus.windows.net/;SharedAccessKeyName=MySasName;SharedAccessKey=*****

I try to initialize CloudStorageAccount, but get a format exception (as indicated in the header).

string str = ConfigurationManager.AppSettings["StorageConnectionString"];
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
            str);

This looks like all the documentation ... can anyone figure out what could be?

+1
source share

All Articles