Sometimes the license file becomes "linked" to a specific drive or computer incorrectly.
In WinCC Runtime Advanced (PC-based), the licensing model differs from Comfort or Basic Panels: Siemens SiePortal Standard License:
The most common cause is missing the specific logging option license required for PC-based runtimes.
Logging is the memory of your machine. Don't let a software handshake turn your HMI into an amnesiac.