We have a Cloud Service which is responsible for retrieving items from a queue. We have started receiving an error recently and we have not deployed any new code so wondered if someone could shed some light on what the problem could be:
DateTime Started - 10/28/2013 9:15:39 AM Error Caught System.IdentityModel.Tokens.SecurityTokenException: The token provider was unable to provide a security token while accessing 'https://sendemail-sb.accesscontrol.windows.net/WRAPv0.9/'. Token provider returned message: 'Error:Code:401:SubCode:T0:Detail:ACS50009: SWT token is invalid.:TraceID:70022329-ce4e-48b9-9be7-44f3cdba25f7:TimeStamp:2013-10-28 09:15:43Z'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.ServiceBus.TokenProviderHelper.GetAccessTokenCore(Uri requestUri, String appliesTo, String requestToken, String simpleAuthAssertionFormat, TimeSpan timeout, String& expiresIn) --- End of inner exception stack trace --- at Microsoft.ServiceBus.TokenProviderHelper.ThrowException(Uri requestUri, WebException exception) at Microsoft.ServiceBus.TokenProviderHelper.GetAccessTokenCore(Uri requestUri, String appliesTo, String requestToken, String simpleAuthAssertionFormat, TimeSpan timeout, String& expiresIn) at Microsoft.ServiceBus.TokenProviderHelper.GetHttpAuthAccessTokenByAssertion(Uri requestUri, String appliesTo, String requestToken, String simpleAuthAssertionFormat, TimeSpan timeout) at Microsoft.ServiceBus.SharedSecretTokenProvider.OnBeginGetWebToken(String appliesTo, String action, TimeSpan timeout, AsyncCallback callback, Object state) at Microsoft.ServiceBus.TokenProvider.GetWebTokenAsyncResult..ctor(TokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state) at Microsoft.ServiceBus.TokenProvider.BeginGetWebToken(String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state) at Microsoft.ServiceBus.HttpBufferClient.AddTokenToRequest(HttpWebRequest webRequest, TransportClientEndpointBehavior credential, String action) at Microsoft.ServiceBus.HttpBufferClient.GetPolicy() at sendEmailRole.AzureHelper.GetOrCreateQueue(TransportClientEndpointBehavior sharedSecredServiceBusCredential, Uri queueUri, MessageBufferPolicy& queuePolicy) in C:\xxxx_Project\xxxx_Azure\sendEmailSingle\sendEmailSingle\sendEmailRole\Helpers\AzureHelper.cs:line 90 at sendEmailRole.AzureHelper.GetMessageBufferClient() in C:\xxxx_Project\xxxx_Azure\sendEmailSingle\sendEmailSingle\sendEmailRole\Helpers\AzureHelper.cs:line 47 at sendEmailRole.SendEmail.Run() in C:\xxxx_Project\xxxx_Azure\sendEmailSingle\sendEmailSingle\sendEmailRole\sendEmail.cs:line 32