[solved] System.InvalidOperationException, license |
Post Reply |
Author | |
redoc
Newbie Joined: 22 March 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 27 October 2016 at 7:34am |
I have a VB.NET project with single form that contains a single Task Panel and no other controls or code, other than setting the XtremeTaskPanel.TaskPanelGlobalSettings to the information in my LIC file (based on a post that I read from the Articles and Tutorials page on this website) and I'm using a registered copy of the CodeJock products, v17.
When I run the compiled application on my development computer everything runs fine, but when I run it on any other computer whether it's 32bit or 64bit regardless of which OS it's running I receive a System.InvalidOperationException exception before the form ever loads. I've copied the Codejock.TaskPanel.v17.2.0.ocx file into the EXE path and registered it, as well as copying both the AxInterop.XtremeTaskPanel.dll and Interop.XtremeTaskPanel.dll files into the same path. I assume I need to include some other files with the EXE but I'm not sure what they would be.
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello,
I suppose that you forgot to include information about license. You can hardcode the first 3 lines of a .LIC file during either application initialization (Sub Main) or form initialization, it's important to make it before any other interaction with the component. Below is example for CommandBars (VB.NET Code) from documentation:
You will need to provide the correct Product Id and Validate Code. This information can be found in the LIC file. The LIC file is located in the same location as the OCX file. By default, the location of the OCX and LIC file is the "..\Codejock Software\ActiveX\Xtreme Suite\Bin" for the Suite Pro installation. This code should be placed in the Form_Initialize event of the main form. IMPORTANT: The LIC must match EXACTLY down to carriage returns, line feeds and CASE, this is one of the most common mistakes made when embedding license information. The other common mistake is to not replace the "X"'s in the sample code or not updating the license information when upgrading versions. Or you need to copy .LIC file to application location. Regards, Oleksandr Lebed |
|
redoc
Newbie Joined: 22 March 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hi Oleksandr,
As I mentioned in my post I did include the license information in the initialization of the form for the XtremeTaskPanel.TaskPanelGlobalSettings, exactly as it shows in the LIC file but that didn't resolve the problem. I did hear from support at CodeJock this morning and they suggested including the LIC file in the same path as the OCX and that has resolved the problem.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |