Upgrading to Kentico 10 - License key is not valid

Cristhian Caldas asked on January 27, 2017 18:50


I was executing the upgrate tool for migrating a Kentico site from v.9.2 to v.10. The upgrade process finished ok whitout any errors in the log, but when i restarted the site, the page throw the following exception:

Image Text

So i compiled and built the site in VS but the exception appeared again.

Do you know the way to solve this error?


Correct Answer

Kristian Bortnik answered on January 30, 2017 04:46

Assuming that the upgrade did go without errors, you might need to remove the licence key from the database.

You could run a query to remove it, and see if that resolves the "yellow screen" issue. You can then add the licence through the Admin area, as Brenden described.

Here's a query to list out all the licences (use SQL Server Management Studio to execute it):


Run a query with the DELETE statement to remove the licence (or licences), and then restart the application pool in IIS.

DELETE FROM CMS_LicenseKey WHERE LicenseDomain = 'yourdomain.com' 
0 votesVote for this answer Unmark Correct answer

Recent Answers

Brenden Kehren answered on January 27, 2017 19:38 (last edited on January 27, 2017 19:38)

You need to log into the site using domain.com/admin and it will give you the error and allow you to go to the license module and remove the current license in v9 format and add a new license for v10 which you can get from your client portal assuming you have a valid maintenance agreement. If you try to go to the root of the site, it will error out every time with this error. You need to login to the admin interface.

0 votesVote for this answer Mark as a Correct answer

Cristhian Caldas answered on January 27, 2017 20:21 (last edited on January 27, 2017 22:36)


I was entered to admin page and when i entered credentials in login page and pressed the "Sign In button" , the exception appeared again; even i was executing the upgrading process manually and the exception still appears.

Do you know another way to solve the error?


0 votesVote for this answer Mark as a Correct answer

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