Service Bus队列令牌问题

时间:2013-07-23 16:12:20

标签: azure acs azureservicebus

当我提供创建队列的密钥

时,我收到此错误
  

System.UnauthorizedAccessException未处理Message =令牌   提供商在访问时无法提供安全令牌   'https://sharan-sb.accesscontrol.windows.net/WRAPv0.9/'。代币   provider返回消息:'Error:Code:401:SubCode:T0:Detail:ACS50009:   SWT令牌是   invalid.:TraceID:afb424d9-d69c-4460-90d4-23ddd49ad950:TimeStamp:2013-07-23   16:08:29Z”。 Source = Microsoft.ServiceBus StackTrace:       服务器堆栈跟踪:          在Microsoft.ServiceBus.TokenProviderUtility.GetMessagingWebToken(ITokenProvider   tokenProvider,String applyTo,String action,Boolean bypassCache,   TimeSpan超时)          在Microsoft.ServiceBus.Messaging.HttpWebRequestExtensions.AddAuthorizationHeader(HttpWebRequest)   请求,ITokenProvider tokenProvider,String action)          在Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.CreateAsyncResult 1.<GetAsyncSteps>d__2.MoveNext() at Microsoft.ServiceBus.Messaging.IteratorAsyncResult 1.MoveNextStep()          在Microsoft.ServiceBus.Messaging.IteratorAsyncResult 1.EnumerateSteps(CurrentThreadType state) at Microsoft.ServiceBus.Messaging.IteratorAsyncResult 1.Start()       在[0]处重新抛出异常:          在Microsoft.ServiceBus.Common.AsyncResult.End [TAsyncResult](IAsyncResult)   结果)          在Microsoft.ServiceBus.Messaging.IteratorAsyncResult 1.End(IAsyncResult asyncResult) at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.EndCreate[T](IAsyncResult asyncResult) at Microsoft.ServiceBus.NamespaceManager.CreateQueueAsyncResult.CreateDescription(CreateQueueAsyncResult thisPtr, IAsyncResult r) at Microsoft.ServiceBus.NamespaceManager.CreateQueueAsyncResult.<GetAsyncSteps>b__a(CreateQueueAsyncResult thisPtr, IAsyncResult r) at Microsoft.ServiceBus.Messaging.IteratorAsyncResult 1.EnumerateSteps(CurrentThreadType   州)       在[1]重新抛出异常:          在Microsoft.ServiceBus.Common.AsyncResult.End [TAsyncResult](IAsyncResult)   结果)          在Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.End(IAsyncResult)   asyncResult)          在Microsoft.ServiceBus.NamespaceManager.OnEndCreateQueue(IAsyncResult   结果)          在Microsoft.ServiceBus.NamespaceManager.EndCreateQueue(IAsyncResult   结果)          在Microsoft.ServiceBus.NamespaceManager.CreateQueue(QueueDescription   描述)          在D:\ Azure \ PluralSight \ Azure视频\ 9-Windows Azure服务中的BasicQueueDemo.Program.Main(String [] args)   公交车\材料\演示\后\ BasicQueueDemo \ BasicQueueDemo \的Program.cs:行   20          在System.AppDomain._nExecuteAssembly(RuntimeAssembly程序集,String [] args)          在System.AppDomain.ExecuteAssembly(String assemblyFile,Evidence assemblySecurity,String [] args)          在Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()          在System.Threading.ThreadHelper.ThreadStart_Context(对象状态)          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean   ignoreSyncCtx)          在System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback回调,对象状态)          at System.Threading.ThreadHelper.ThreadStart()InnerException:System.IdentityModel.Tokens.SecurityTokenException          Message =令牌提供程序在访问时无法提供安全令牌   'https://sharan-sb.accesscontrol.windows.net/WRAPv0.9/'。代币   provider返回消息:'Error:Code:401:SubCode:T0:Detail:ACS50009:   SWT令牌是   invalid.:TraceID:afb424d9-d69c-4460-90d4-23ddd49ad950:TimeStamp:2013-07-23   16:08:29Z”。          来源= Microsoft.ServiceBus          堆栈跟踪:               在Microsoft.ServiceBus.TokenProviderHelper.ThrowException(Uri   requestUri,WebException异常)               在Microsoft.ServiceBus.TokenProviderHelper.GetAccessTokenCore(Uri   requestUri,String applyTo,String requestToken,String   simpleAuthAssertionFormat,TimeSpan timeout,String&amp;过期日期在)               在Microsoft.ServiceBus.TokenProviderHelper.GetHttpAuthAccessTokenByAssertion(Uri)   requestUri,String applyTo,String requestToken,String   simpleAuthAssertionFormat,TimeSpan超时)               在Microsoft.ServiceBus.SharedSecretTokenProvider.OnBeginGetWebToken(String   applyTo,String动作,TimeSpan超时,AsyncCallback回调,   对象状态)               在Microsoft.ServiceBus.TokenProvider.GetWebTokenAsyncResult..ctor(TokenProvider)   tokenProvider,String applyTo,String action,Boolean bypassCache,   TimeSpan超时,AsyncCallback回调,对象状态)               在Microsoft.ServiceBus.TokenProvider.BeginGetWebToken(String applyTo,   字符串操作,布尔bypassCache,TimeSpan超时,AsyncCallback   回调,对象状态)               在Microsoft.ServiceBus.TokenProviderUtility.GetMessagingWebToken(ITokenProvider   tokenProvider,String applyTo,String action,Boolean bypassCache,   TimeSpan超时)          InnerException:System.Net.WebException               消息=远程服务器返回错误:(401)未经授权。               来源=系统               堆栈跟踪:                    在System.Net.HttpWebRequest.GetResponse()                    在Microsoft.ServiceBus.TokenProviderHelper.GetAccessTokenCore(Uri   requestUri,String applyTo,String requestToken,String   simpleAuthAssertionFormat,TimeSpan timeout,String&amp;过期日期在)               的InnerException:

0 个答案:

没有答案