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.
Error with licensing
I am glad it works now and that you found the reason.
Thank you for reporting it, because although the problem was not really on our side, we will consider improving the error handling so that the exception thrown better indicates the situation, should it happen to somebody else again.
Best regards
Please Log in or Create an account to join the conversation.
- bruker optics
- Topic Author
- Offline
- Junior Member
- Posts: 3
- Thank you received: 0
Sorry to bother you. Thank you for your efforts.
Please Log in or Create an account to join the conversation.
Can you please reply the following:
1. Which precise build of QuickOPC 5.31 are you using? The best way to figure out is to locate one of the assembly DLLs that start with "OpcLabs." in Windows Explorer, then right-click on it, select properties, and read out the version on the Details tab.
2. Please verify that all "OpcLabs.*" assembly DLLs have precisely the same version and build (i.e. all four version number fields should be the same).
3. Have you tried your installation/registration sequence on multiple computers, or just one? If just one, can you try more? If more, does the problem happen on other machines as well, or just this one?
4. Is the computer where the problem appears in a virtualized environment? If so, or if you can easily take and restore snapshots of disk state, will the problem disappear if you install the license using License Manager instead? Will the problem disappear if you install QuickOPC using its own setup program?
Thank you
Please Log in or Create an account to join the conversation.
From: ...
Sent: Friday, April 03, 2015 8:48 PM
To: Zbynek Zahradnik
Subject: RE: [OPC Labs Online Forums] Error with licensing (Installation, Deployment)
Hello,
Attached is the REG file. Thank you for replying promptly.
-R.
Please Log in or Create an account to join the conversation.
can you please send the .REG file you used (please zip it - otherwise it gets removed by virus checkers) to us, by email to support09 (at) opclabs.com.
Thank you
Please Log in or Create an account to join the conversation.
- bruker optics
- Topic Author
- Offline
- Junior Member
- Posts: 3
- Thank you received: 0
"The type initializer for 'OpcLabs.EasyOpc.DataAccess.LicensingEasyDAClient' threw an exception"
I've installed the license by exporting the registry key from my development PC (using RegEdit) to a ".reg" file.
DEVELOPMENT PC:
- Windows 7 Enterprise, 64 bit
- QuickOPC 5.31
- Standard; ISV/OEM License
- License Manager displays component: "QuickOPC 5.3"
TARGET PC:
- Windows 7 Professional, 32 bit
- Installed all the dll's for QuickOPC 5.31
- Installed IV/OEM using registry key
Below is the exception information:
Type: System.TypeInitializationException
Message: The type initializer for 'OpcLabs.EasyOpc.DataAccess.LicensingEasyDAClient' threw an exception.
Source: OpcLabs.EasyOpcClassicInternal
StackTrace: at OpcLabs.EasyOpc.DataAccess.LicensingEasyDAClient..ctor(IEasyDAClient baseClient, IEasyDAClient instance)
at OpcLabs.EasyOpc.DataAccess.EasyDAClient.UpdateBaseClient()
at OpcLabs.EasyOpc.DataAccess.EasyDAClient.Construct()
at OpcLabs.EasyOpc.DataAccess.EasyDAClient..ctor()
at OpusDiagnostics.OpusStatusOpc..ctor() in c:\Source Code\LATA Gas Analyzer\Source Code\OPUSGasAnalytical\OpusDiagnostics\Class1.cs:line 33
at OPUSGasAnalytical.Forms.MainForm..ctor() in c:\Source Code\LATA Gas Analyzer\Source Code\OPUSGasAnalytical\Forms\MainForm.cs:line 73
InnerException:
Type: System.InvalidCastException
Message: Specified cast is not valid.
Source: OpcLabs.BaseLibExtensions
StackTrace: at OpcLabs.BaseLib.Licensing.License.ReadRegistry(RegistryKey registryKey)
at OpcLabs.BaseLib.Licensing.RegistryStore.GetLicense(String licenseId, License& license)
at OpcLabs.BaseLib.Licensing.LicenseHandler.QueryLicenseList(String licenseId, List`1& licenseList)
at OpcLabs.BaseLib.Licensing.LicenseHandler.ObtainLicense(String licenseId, LicensedEntityInformation licensedEntityInformation, Boolean verify, License& license)
at OpcLabs.BaseLib.Licensing.LicenseHandler.ObtainVerifiedLicense(String licenseId, LicensedEntityInformation licensedEntityInformation, License& license)
at OpcLabs.BaseLib.Licensing.LicensingRoot.ObtainLicenses(LicensedEntityInformation licensedEntityInformation)
at OpcLabs.BaseLib.Licensing.LicensingRoot.InvokeLicense(String licenseId, LicensedEntityInformation licensedEntityInformation, License& license)
at OpcLabs.BaseLib.Licensing.Licensing.ActivateLicense()
at OpcLabs.EasyOpc.DataAccess.LicensingEasyDAClient..cctor()
Please Log in or Create an account to join the conversation.