Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: A security token validation error occured for the received JWT token. Http Status Code: Unauthorized

When I try to deploy an Azure 2.2 application with ASP.NET Web Role I get the following error message:

Error: A security token validation error occurred for the received JWT token. Http Status Code: Unauthorized OperationId:

I have a subscription and I logged in when I deployed.

Previously I was getting this error message:

Instance 0 of role xxy is in an unknown state

Why do I get this exception and how can I solve it?

like image 988
Lajos Avatar asked Mar 10 '14 09:03

Lajos


2 Answers

I found that downloading the publish settings from the azure portal, or just recreating the deployment profile in vs2013 and saving it fixed the problem.

Try deleting your deployment (not your service) and publishing again.

like image 142
Neil Naidoo Avatar answered Sep 18 '22 23:09

Neil Naidoo


Check for validation warnings and see if any of those can be fixed. I started getting this same error after updating some of the azure/asp packages in the project. There were no build errors but I was unable to deploy it to the cloud. After fixing a few assembly binding redirects I noticed in the warnings everything worked again.

like image 33
Justin Emgarten Avatar answered Sep 22 '22 23:09

Justin Emgarten