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
- License works in Debug, but not when bundeled in an installer
License works in Debug, but not when bundeled in an installer
The RegisterManagedResourceWithExistenceCheck really checks just the existence, that's by design. But we could have better diagnostic later on, e.g. in the error message, I agree with you in principle.
Best regards
Please Log in or Create an account to join the conversation.
- janko.mihelic@adnet.hr
- Topic Author
- Offline
- Elite Member
- Posts: 24
- Thank you received: 1
Anyway, it works now. Thanks!
Please Log in or Create an account to join the conversation.
yes, I understand that; it is weird.
Can you shrink your project down to just the parts that show the problem, and provide it to us? (but not here on the forums, because it would inevitably contain the license key). We can coordinate it via email, support09 (at) opclabs.com.
Best regards
Please Log in or Create an account to join the conversation.
- janko.mihelic@adnet.hr
- Topic Author
- Offline
- Elite Member
- Posts: 24
- Thank you received: 1
But I used the "RegisterManagedResourceWithExistenceCheck" method, which is supposed to throw an error if it doesn't find the resource. And it didn't throw an error.support wrote: Thank you. From the message, it is now clear the embedded license is not being found at all (as opposed to a situation in which it is is found, but rejected).
Please Log in or Create an account to join the conversation.
- janko.mihelic@adnet.hr
- Topic Author
- Offline
- Elite Member
- Posts: 24
- Thank you received: 1
long serialNumber = (uint) OpcUaMultidrop.OpcUaChannel.client.LicenseInfo["Multipurpose.SerialNumber"];
Console.WriteLine( "SerialNumber: {0}", serialNumber );
if ( LogSettings.LogChannelErrors )
if ( ( 1111110000 <= serialNumber ) && ( serialNumber <= 1111119999 ) )
LogToFile( "This is a stock demo or trial license of OPC-UA driver." );
else
Console.WriteLine( "This is not a stock demo or trial license." );
And it is run after the registering of the embedded license, not before. This code returns "This is a stock demo or trial license of OPC-UA driver." which proves that the serial number is between those numbers. The exact serial number I got from the error message after 30min.
Please Log in or Create an account to join the conversation.
Question: You wrote "When I install our product with the installer, my program gets a serial number between the 1111110000-1111119999 range. "
Do you have some other code that retrieves the serial number in your app, or is the above statement based on just the serial number in the error message you get after 30 minutes?
If you have code that retrieves the serial number, is that code executed before registering the embedded license, or after (or both)?
Best regards
Please Log in or Create an account to join the conversation.
- janko.mihelic@adnet.hr
- Topic Author
- Offline
- Elite Member
- Posts: 24
- Thank you received: 1
08.06.2022 11:38:54.206 *** Failure: Run time is over the limit in license "Multipurpose", serial number 1111111120. The license you are running (most likely trial version) does not provide valid data after certain time period expires. Note that after the component's process is simply restarted, valid data will be provided again. Obtain and install proper license to permanently resolve this error. You can ask for evaluation license key, if you need a longer run time for your tests.
Product information follows. Component name: "QuickOPC", license IDs: "Multipurpose", version number: 563, release date: 21.3.2022., trial validity: 397 days, option expression: "EasyUAClient".
Context: 0 dropped license(s).
+ The client method called (or event/callback invoked) was 'DataChangeNotification'.
Please Log in or Create an account to join the conversation.
Please provide the full error message.
Best regards
Please Log in or Create an account to join the conversation.
- janko.mihelic@adnet.hr
- Topic Author
- Offline
- Elite Member
- Posts: 24
- Thank you received: 1
I've only downloaded License Manager today, and this all is happening for the last 2 days. License manager isn't the source of the problem.
When I install the license in the registry with the License manager, both version work. But that way of installing licenses doesn't suite me. I need to have it installed as an embeded resource.
Please Log in or Create an account to join the conversation.
Re "I've deleted the registry entries it created to get the wanted state.": That's not the right way to do it. The right way is to use the Uninstall license button inside the License Manager. You could delete the registry entries manually, but you need understand well what you are doing - and specifically, to be aware of the fact that there are 2 sets of them on 64-bit machine. If you have deleted just one, you may break things. And the effect might be that the license is still taken form the registry, although it is not visible in the License Manager. That could explain why it "works" on the development machine - it would mean that the embedding does not work (which of course is what you suspect anyway), but it would make it clear why it *appears* to work on the dev machine.
Regards
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Product Lifecycle, Licensing
- License works in Debug, but not when bundeled in an installer