Page 1 of 1

Package license validation failed error

Posted: Wed Jul 05, 2023 12:42 pm
by shorttrack
We have a server package that runs in Debug mode without issue. We've received a PackageLicense.lic file and added it as instructed in the SDK. When we add it to the server and start the server, we see errors in Event Viewer stating "Failed to validate the package license. The license key is missing."

We're testing against Select 4.3 release .119. I've confirmed that the current fully qualified name matches what we provided for the license file. Any suggestions what could be wrong?

Here's what it looks like in VS:
Selection_065.png
Selection_065.png (60.12 KiB) Viewed 7047 times
Here are the errors in event viewer:
Selection_066.png
Selection_066.png (24.96 KiB) Viewed 7047 times
Selection_067.png
Selection_067.png (20.71 KiB) Viewed 7047 times

Re: Package license validation failed error

Posted: Wed Jul 05, 2023 1:04 pm
by BobRichards
Select literally could not find the package license. Refer to the SDK section How-To/Server Package Development. Make sure the license file is in the recommended location, the namespace is correct, etc. Select is really picky about this information.

Re: Package license validation failed error

Posted: Thu Jul 06, 2023 11:10 am
by shorttrack
Thanks for the reminder Bob. I went back through the SDK and found we were missing the [ProvideLicense ...] entry. Sometimes the computer is not plugged in.

Re: Package license validation failed error

Posted: Thu Jul 06, 2023 11:57 am
by BobRichards
Haha. No worries. Glad you found it quickly!

Re: Package license validation failed error

Posted: Thu Jul 06, 2023 9:30 pm
by BobRichards
So the funny thing is I was putting a server package together today and couldn't get it to load. When this happens, I always go to the SDK and follow the steps I created all those years ago. I finally found it - I forgot to change the "Build Action" for the license file in VS2019 to "Embedded Resource". These license files always bite me.