Symptoms
Can't edit K2 artifacts after deleting the MS tokens, to get past a 'specified cast error'.
Diagnoses
Customer was not able to rerun the registration wizard when the tokens were deleted. When they tried to rerun the reg wiz the screen would just show an infinite spinner and no more. We tried to run the reg wiz in Chrome instead of IE, this resolved the issue and they were able to run though the reg wiz successfully. At the time they also no longer got the specified cast error.
After some period of time, the 'specified cast error' returned.
Resolution
The following script was run by the Ops team. DECLARE @CID AS UNIQUEIDENTIFIER SET @CID = NEWID() INSERT INTO NHostServer].oConfiguration] SELECT @CID, 'EOAUTH_ERROR_RETRIES]', 3, 0 This resolved the issue.