Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. var connectionString = "Endpoint=sb://<servername>/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=<SharedAccessKey>";
  2. var queueName = "TestQueue";
  3.  
  4. var ns = NamespaceManager.CreateFromConnectionString(connectionString);
  5.  
  6. if (!ns.QueueExists(queueName))
  7. ns.CreateQueue(queueName);
  8.  
  9. System.UnauthorizedAccessException was unhandled
  10. HResult=-2147024891
  11. Message=The remote server returned an error: (401) Unauthorized. InvalidSignature: The token has an invalid signature. TrackingId:<GUID>_G30, SystemTracker:<MyQueue>.servicebus.windows.net
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement