Symptom

When using a PowerServer application, you may see the “application license is invalid” error message intermittently, especially at the moment when your application attempts to retrieve data from the database.

licenseinvalidfalsealarm2

Note: 

The error number is 231.

The last part of the URL can be something different.


Environment 

PowerServer 2022 


Cause

The current license mechanism is not compatible with the .NET publish option ReadyToRun. 


Resolution

Republish your Web API project without using ReadyToRun option. 

Here are the steps in detail:

1. Open your Web API solution in SnapDevelop or Visual Studio.

2. Go to publish settings.

3. Uncheck “Enable ReadyToRun compilation.”

ReadyToRun

4. Publish your Web API again.

3
0