3

当我提供创建队列的密钥时出现此错误

System.UnauthorizedAccessException 未处理消息=令牌提供程序在访问“ https://sharan-sb.accesscontrol.windows.net/WRAPv0.9/时无法提供安全令牌”'。令牌提供程序返回消息:'错误:代码:401:子代码:T0:详细信息:ACS50009:SWT 令牌无效。:TraceID:afb424d9-d69c-4460-90d4-23ddd49ad950:TimeStamp:2013-07-23 16:08:29Z '。Source=Microsoft.ServiceBus StackTrace:服务器堆栈跟踪:在 Microsoft.ServiceBus.Messaging.HttpWebRequestExtensions.AddAuthorizationHeader(HttpWebRequest 请求,ITokenProvider tokenProvider, String action) 在 Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.CreateAsyncResult 1.<GetAsyncSteps>d__2.MoveNext() at Microsoft.ServiceBus.Messaging.IteratorAsyncResult1.MoveNextStep() 在 Microsoft.ServiceBus.Messaging.IteratorAsyncResult1.EnumerateSteps(CurrentThreadType state) at Microsoft.ServiceBus.Messaging.IteratorAsyncResult1.Start() 在 [0] 处重新抛出异常:在 Microsoft.ServiceBus.Messaging.IteratorAsyncResult 处的 Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult 结果)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.IteratorAsyncResult1.EnumerateSteps(CurrentThreadType state) 在 [1] 处重新抛出异常:在 Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.End(IAsyncResult asyncResult) 处的 Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult 结果)。 ServiceBus.NamespaceManager.OnEndCreateQueue(IAsyncResult result) at Microsoft.ServiceBus.NamespaceManager.EndCreateQueue(IAsyncResult result) at Microsoft.ServiceBus.NamespaceManager.CreateQueue(QueueDescription description) at BasicQueueDemo.Program.Main(String[] args) in D:\Azure \PluralSight\Azure Videos\9-Windows Azure Service Bus\materials\demos\after\BasicQueueDemo\BasicQueueDemo\Program.cs:System.AppDomain 的第 20 行。_nExecuteAssembly(RuntimeAssembly 程序集,String[] args)位于 System.AppDomain。ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback回调,对象状态,布尔 ignoreSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback 回调,对象状态) 在 System.Threading.ThreadHelper.ThreadStart() InnerException: System.IdentityModel.Tokens.SecurityTokenException Message=令牌提供者访问 ' 时无法提供安全令牌HostProc.RunUsersAssembly() 在 System.Threading.ThreadHelper.ThreadStart_Context(Object state) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback 回调,对象状态)在 System.Threading.ThreadHelper.ThreadStart() InnerException: System.IdentityModel.Tokens.SecurityTokenException Message=令牌提供者在访问'时无法提供安全令牌HostProc.RunUsersAssembly() 在 System.Threading.ThreadHelper.ThreadStart_Context(Object state) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback 回调,对象状态)在 System.Threading.ThreadHelper.ThreadStart() InnerException: System.IdentityModel.Tokens.SecurityTokenException Message=令牌提供者在访问'时无法提供安全令牌Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: System.IdentityModel.Tokens.SecurityTokenException Message=令牌提供程序无法提供访问时的安全令牌'Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: System.IdentityModel.Tokens.SecurityTokenException Message=令牌提供程序无法提供访问时的安全令牌'https://sharan-sb.accesscontrol.windows.net/WRAPv0.9/'。令牌提供程序返回消息:'错误:代码:401:子代码:T0:详细信息:ACS50009:SWT 令牌无效。:TraceID:afb424d9-d69c-4460-90d4-23ddd49ad950:TimeStamp:2013-07-23 16:08:29Z '。Source=Microsoft.ServiceBus StackTrace: 在 Microsoft.ServiceBus.TokenProviderHelper.ThrowException(Uri requestUri, WebException 异常) 在 Microsoft.ServiceBus.TokenProviderHelper.GetAccessTokenCore(Uri requestUri, String applyTo, String requestToken, String simpleAuthAssertionFormat, TimeSpan timeout, String& expiresIn) 在Microsoft.ServiceBus.SharedSecretTokenProvider 处的 Microsoft.ServiceBus.TokenProviderHelper.GetHttpAuthAccessTokenByAssertion(Uri requestUri,字符串 applyTo,字符串 requestToken,字符串 simpleAuthAssertionFormat,TimeSpan 超时)。

4

0 回答 0