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:
Run the following query in your SQL Server.
DELETE FROM HostSettings WHERE SettingName = 'hash'
Navigate to IIS and recycle the application pool.
If you load the site without adding the license, it will be displayed as unlicensed.