Failed to login the license server
When running the installable cloud app, the Web API console
displays the following error:
|
1 2 3 |
2021-01-27 01:28:32,240 ERROR PowerServer.Client.PowerServerClient.LogMessage [0] - MESSAGE: License Exception: Failed to login the license server. (Invalid_client) at PowerServer.SessionFacade.CreateSessionIdAsync(String appName, String clientEncryptString, CancellationToken cancellationToken)) |
Cause & Solution:
The “invalid-client” error occurs because the license code is
invalid or the license code cached in the system has expired. Please try
the following:
-
Check the license code included in the PowerServer project
matches the one you obtained from the Appeon website; -
Clear the PowerServer cache and then build and run the Web
APIs again;To clear the PowerServer cache, go to
%SystemDrive%Users[username].nugetpackages, and delete the
folders starting with “dwnet”, “powerserver”, “snapobjects”, and
“powerscript”. -
Make sure that PowerServer is connecting to the appropriate
license servers. If not, update the PowerServer.Core and PowerServer.Api NuGet packages to the latest
version.