Error after Kentico 12 to Kentico 13 Upgrade

Chandra Bhattarai asked on July 6, 2022 12:43

After upgrading from 12 to 13.0.0 , I got the following two errors while running differently while visiting cms URL as well as presentation URL

  1. CMSJwtTokenEncryptionKey

{"[ValidationHelper.JwtTokenEncryptionKey]: The 'CMSJwtTokenEncryptionKey' setting is null."}

2. Error 2:

Server Error in '/' Application. IDX10703: Cannot create a 'System.RuntimeType', key length is zero. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: IDX10703: Cannot create a 'System.RuntimeType', key length is zero.

Source Error:

Line 181: private string GetMvcAuthenticationFrameUrl() Line 182: { Line 183: return URLHelper.CombinePath( Line 184: string.Format(VIRTUALCONTEXT_AUTHENTICATION_ROUTE, new SecurityTokenManager

Recent Answers


Brenden Kehren answered on July 9, 2022 06:28

Did you run the CMS site before trying to access the public MVC site? Also, did you upgrade the packages in your MVC site?

Lastly, don't stay on the vanilla version of 13 (13.0.0), apply the latest hotfix so you're sure to have all the latest security issues, bugs, and enhancements applied, this could ultimately resolve your problem.

0 votesVote for this answer Mark as a Correct answer

Elmar Höfinghoff answered on November 15, 2022 15:04

How did you resolve this?

0 votesVote for this answer Mark as a Correct answer

Sean Fleming answered on January 4, 2023 19:52

Our issue was there was a duplicate CMSJwtTokenEncryptionKey row in the table "CMS_SettingsKey", which had a null value. Removing the row with null values fixed the issue.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.