Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Question on StorageCredentials in a Windows Store App

$
0
0

I'm a little confused on what to enter for the StorageCredentials. Have tried a number of combinations but can't seem to get the right ones. One constructor will take "Account Name" and "Key" and I know what the key value should be, but what do I put in for Account Name?

This is to access a service bus queue, and some other queues. A snippet of the code is:

var creds = new StorageCredentials("AccountName", "fjfj98fsd9as-0dfasdf");

var account = new CloudStorageAccount(creds,true);

CloudQueueClient qClient = account.CreateCloudQueueClient();

CloudQueue sb = qClient.GetQueueReference("queueName");

bool exists = await sb.ExistsAsync();

This sequence generates a timeout exception. Any help would be greatly appreciated.

Thanks.


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>