Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

While attempting to publish a cloud service, I get: "Error: A security token validation error occured for the received JWT token..."

Tags:

c#

azure

orleans

I am attempting to publish an Azure cloud service. Approximately 1 hour after beginning publishing, it returns this error. I am publishing through Visual Studio 2013 ultimate.

I am attempting to create a test Orleans-based service (not one of the samples). I have gone through the step-by-step cloud deployment tutorial and can't find anything that I might have missed. I would bet there is something in here though, like setting some connection strings wrong somewhere. I will be going through it again to make sure everything is as it is in the tutorial (unless there is an error there).

Also, I am using a mobile service as the API front end. There could be something in setting this up that's causing issue as well, as it differs from the samples I've looked at.

like image 404
Nate Diamond Avatar asked Apr 20 '14 18:04

Nate Diamond


2 Answers

I think this usually happens when you create a new publish profile or in a slow internet. Things you can try.

  1. Restart Visual Studio
  2. Sign Out and Sign in Again for your Azure Subscription.
  3. Minimize your deployment Package Size

Disclaimer : I have not tried the 3rd point myself yet. Test in staging environment or UAT environment before trying this on production to avoid trouble.

like image 148
sudhAnsu63 Avatar answered Oct 22 '22 07:10

sudhAnsu63


Here's few things you can try:

  1. Make sure the time stamp match on client and server.
  2. Republish using publish setting you download from Microsoft Azure portal site.
  3. When using Mobile Service, make sure you have 'X-ZUMO-APPLICATION: ' in your HTTP header.
like image 37
stack247 Avatar answered Oct 22 '22 06:10

stack247