- Posts: 5
- Thank you received: 2
Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Product Lifecycle, Licensing
- Permanent license recognized as Evaluation license
Permanent license recognized as Evaluation license
- Quaintly3296
- Offline
- Senior Member
we will use option 5 as it fits best for our infrastructure.
would be great if this option of converting the txt license to bin would be mentioned in the documentation ( Ref ).
Thank you very much
Please Log in or Create an account to join the conversation.
Well, in our view, "file is a file is a file", so when we provide a license key file with some contents, we expect that the file contents should not change. But I see your point of view, and in reality, no matter whether is is technically a bug or not, we have recognized it as a problem. And it is already solved in QuickOPC 2023.1.
You have multiple options to deal with it now:
1. Use QuickOPC 2023.1+.
2. Extract the uncorrupted files from your email and configure your system to leave them uncorrupted.
3. If you cannot get hold of the uncorrupted files: Let me know and I will resend them to you, zipped.
4. Or, let me know and I will send to you the .BIN, binary version of the license key(s).
5. You can also use Base64 decoder (many available, also online), apply it to the marked up part of the .TXT license key you have, store the result to .BIN file, and use it as license key with QuickOPC.
Best regards
Please Log in or Create an account to join the conversation.
- Quaintly3296
- Offline
- Senior Member
- Posts: 5
- Thank you received: 2
We tried to rename the license ( remove the .txt ) to prevent line ending change, but your license manager doesnt accept anything that is not .txt
This sounds like a bug to me. you force to use the license as text file but expect it to behave like a binary file
Please Log in or Create an account to join the conversation.
I have not even opened your solution, because immediately upon unzipping, I saw the problem: The license key files are NOT the files I have sent you. They are corrupted.
Something on your side, such as the email system or source controls system (we have seen that happening) has modified them. Specifically, it replaced all CR/LF pairs by a single LF.
The reason it works in version 2023.1 is because we have specifically allowed for such "damage": kb.opclabs.com/What%27s_new_in_QuickOPC_2023.1#Licensing .
I will email you the license keys anew, now zipped in an attachment. This should resolve it if the corruption is done in the email transfer. If it was done by something else, such as source control, you need to resolve the problem yourself.
Regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please advise ASAP.
Please Log in or Create an account to join the conversation.
I attached the minimal reproducible example (MRE) but deleted the content of Key-Permanent-WebForm-XXX.txt license key. I have also emailed this MRE but with real keys to @opclabs.com. Please, let me know what can be wrong.
This is the MRE I'm using (the code is also attached as zip):
internal class Program
{
static void Main(string[] args)
{
RegisterManagedResourceWithExistenceCheck();
}
public static void RegisterManagedResourceWithExistenceCheck()
{
try
{
LicensingManagement.Instance.RegisterManagedResourceWithExistenceCheck("QuickOPC", "Multipurpose",
Assembly.GetCallingAssembly(),
"OpcLabTest.Key-Permanent-WebForm-XXX.txt");
}
catch (CustomException customException)
{
Console.WriteLine($"*** Failure: {customException.Message}");
return;
}
var client = new EasyDAClient();
long serialNumber = (uint)client.LicenseInfo["Multipurpose.SerialNumber"];
Console.WriteLine("SerialNumber: {0}", serialNumber);
}
}
Attachments:
Please Log in or Create an account to join the conversation.
Regards\
Please Log in or Create an account to join the conversation.
var licenseResource = "MyProject.Key-Permanent-WebForm-XXXXXX-20210913.txt";
LicensingManagement.Instance.RegisterManagedResourceWithExistenceCheck("QuickOPC", "Multipurpose", Assembly.GetExecutingAssembly(), licenseResource);
But, it still recognize it as Evaluation since I get again the error below
OpcLabs.BaseLib.Licensing.LicensingException: Not allowed to run by the license "Multipurpose". You might be running a trial license, and the version of the software you are using is obsolete. To resolve this problem, a) obtain a recent version, or b) ask for an evaluation license key, or c) install a license valid for the current version.
Product information follows. Component name: "QuickOPC", license IDs: "Multipurpose", version number: 563, release date: 3/21/2022, trial validity: 397 days, option expression: "EasyDAClient".
Context: 0 dropped license(s).
FYI, When I first built my project in Debug mode and checked the license type in Debug mode it said "Standard". But, when I built it in Release mode, it says now "Trial License". What am I missing here?
Here is the content of `LicenseInfo`:
{"Multipurpose.ID":"Multipurpose","Multipurpose.SerialNumber":1111111120,"Multipurpose.SubjectName":"*","Multipurpose.IssuerName":"OPC Labs","Multipurpose.NotBefore":"1601-01-01T00:00:00Z","Multipurpose.NotAfter":"1601-01-01T00:00:00Z","Multipurpose.RunTimeLimit":"00:30:00","Multipurpose.RunOnServer":1,"Multipurpose.AllPurposeStations":1,"Multipurpose.ExtraRuntimeStations":0,"Multipurpose.Type":"Trial License","Multipurpose.CallerRestrictions":[],"Multipurpose.Hidden":1,"Multipurpose.OptionRestrictions":["+StreamInsight"],"Multipurpose.PlatformRestrictions":[],"Multipurpose.ReleaseDateCovered":"1601-01-01T00:00:00Z","Multipurpose.VersionNumberCovered":563,"Multipurpose.DegradeDate":"2023-04-22T00:00:00Z","Multipurpose.IsEvaluation":1}
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Product Lifecycle, Licensing
- Permanent license recognized as Evaluation license