Reputation: 320
I have upgraded my windows azure project from VS2010 to VS2013. I updated all assemblies by package manager using update-package command and downloaded latest configuration file from azure portal. But when I try to publish the site it always shows error A security token validation error occurred for the received JWT token. Http Status Code: Unauthorized OperationId:
Has any one have any idea how to get rid of this error and publish successfully?
Upvotes: 0
Views: 600
Reputation: 10998
With older SDKs the only authentication mechanism was Service Management certificates. With newer SDKs we added the active directory authentication option. With AD authentication Visual Studio will acquire an auth token at the beginning of publishing and then continue to use that token for the duration of the publishing. If the upload of the CSPKG takes a long time due to slow network conditions or large package size then the auth token will expire and Visual Studio will throw the Unauthorized error when it tries to perform the next publishing operation after the CSPKG upload.
To resolve this you can do a few things:
A future SDK will automatically renew this token so that you don't have to worry about this authentication issue, but I don't know which SDK this will be included in.
Upvotes: 3