Package license validation failed error

Discussions related to SoftPro Select Server development.

Moderator: Phil Barton

Post Reply
shorttrack
Posts: 10
Joined: Wed Oct 04, 2017 5:54 pm

Package license validation failed error

Post 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 6222 times
Here are the errors in event viewer:
Selection_066.png
Selection_066.png (24.96 KiB) Viewed 6222 times
Selection_067.png
Selection_067.png (20.71 KiB) Viewed 6222 times
BobRichards
Posts: 1377
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Package license validation failed error

Post 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.
Bob Richards, Senior Software Developer, SoftPro
shorttrack
Posts: 10
Joined: Wed Oct 04, 2017 5:54 pm

Re: Package license validation failed error

Post 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.
BobRichards
Posts: 1377
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Package license validation failed error

Post by BobRichards »

Haha. No worries. Glad you found it quickly!
Bob Richards, Senior Software Developer, SoftPro
BobRichards
Posts: 1377
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Package license validation failed error

Post 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.
Bob Richards, Senior Software Developer, SoftPro
Post Reply