Summary
User is unable to acquire a license from trusted storage after restart.
Question
When using the FlexNet Embedded 2015 R2 .NET XT kit (though this also applies to other kits), you're having an issue with your network license implementation:
- The user connects to a network license server, licenses are requested, stored in trusted storage and acquired successfully from trusted storage.
- Then the user closes the app and restarts.
- On launch, they check trusted storage for features they've already leased from the server, using:
ILicensing.LicenseManager.GetFeatureCollection(LicenseSourceOption.TrustedStorage, true);" - This call returns a collection of their features from the last session indicating valid for acquisition.
- Realizing you have the features available for acquisition, you don't make a new request to the server.
- You then attempt to acquire licenses for the features using
"ILicensing.LicenseManager.Acquire();" - You receive the following error message:
A service system error was encountered: Requested feature was not found. [1,7E0,8,0[7000000B,0,702C7]]
So, why are you unable to acquire this feature that claims to be available for acquisition? And why, if you make a new request to the server for the features, then try to acquire, it works fine. Why is this happening?
Answer
The problem is that you are failing to add trusted storage as a license source before requesting the feature.
When a capability response is processed, trusted storage is automatically added as a license source (as indicated in the API documentation). A trusted storage license source for the target server instance will be added to the license source collection if not already present.
When the application restarts, the license source collection is empty: ILicensing.LicenseManager.GetFeatureCollection(LicenseSourceOption.TrustedStorage, true);"
API will return a feature collection of the features contained in trusted storage but will not add trusted storage as a license source for feature acquisition. In fact, the GetFeatureCollection method call as you coded with the diagnostic parameter set to true will return all trusted storage features both valid and invalid (such as expired, etc.).
To fix this, on restart, you need to explicitly add trusted storage as a license source before attempting to acquire the valid features contained within trusted storage:
ILicensing.LicenseManager.AddTrustedStorageLicenseSource()
Related Articles
How do You Repair a Trusted Storage Activation When it's in The **DISABLED** State? 5Number of Views Clock Windback Detection Implementation Example 12Number of Views Clock Windback Detection doesn't Work With Get Feature Information 6Number of Views How to View the Contents of Trusted Storage 5Number of Views How does Flex Check Backdating the Computer in Trusted Storage 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago