Changing the Machine Key invalidates the DNN license


If you change the machine key for your application and reapply the license, you will receive a message indicating that the license has expired or is invalid.



This issue occurs due to a host setting, named hash, in the HostSettings table. It has a hash value that is generated when a license is activated and is based on the machine key.




To resolve this issue, follow the steps mentioned below: 

  1. Run the following query in your SQL Server.

    DELETE FROM HostSettings WHERE SettingName = 'hash'
  2. Navigate to IIS and recycle the application pool.

  3. Activate the license again.

    • If you load the site without adding the license, it will be displayed as unlicensed.




Please sign in to leave a comment.