TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
San
NA
804
323.9k
No valid combination of account information found
Mar 28 2019 6:27 AM
Here is the scenario i am doing. I have a function app, in which i have specified azure service bus connection string and i am trying to call that connection string. Every time i call that it throws me this error 'No valid combination of account information found". What can it be, why is it throwing this error?
CloudQueueClient queueClient = null;
string serviceBus = "Endpoint=sb://xyzservicebus.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xxxxxx";
string serviceQueue = "Endpoint=sb://xyzservicebus.servicebus.windows.net/;SharedAccessKeyName=processqueuepolicy;SharedAccessKey=xxxxxx=;EntityPath=processqueue";
serviceBus = serviceQueue;
// CloudStorageAccount storageAccount = null;
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(serviceBus);
if (CloudStorageAccount.TryParse(serviceBus, out storageAccount))
{
queueClient = storageAccount.CreateCloudQueueClient();
storageAccountQueue = queueClient.GetQueueReference("processqueue");
await storageAccountQueue.AddMessageAsync(new CloudQueueMessage(message));
}
}
Reply
Answers (
0
)
How to Add Mails under one thread with Same Subject Line
How to protect my c# app by flash desk serail number ?