Welcome Guest Search | Active Topics | Members | Log In | Register

Registration Options
spbrady
Posted: Wednesday, April 07, 2010 9:39:47 PM
Rank: Newbie

Joined: 4/7/2010
Posts: 8
Points: 24
Location: USA
Hello,

I am having trouble getting Integral UIListBox to register.

I am using Windows 7 with Visual Studio 2008. I have installed the Integral UIListBox without a problem. The version of UIListBox I am using is v1.1

The installer never askes me for my serial number.

I open my project, open the class that contains my UIListBox control in Design view. It askes me for my Serial Number and I provide it and it all seems to go through.

I can edit/run my application on my development PC without a problem. I am not asked for the serial number again.

When I create a package and install my software on another computer, it prompts me for the serial number.

When I am on my development PC I am never prompted for the license. When I open the listbox editor and close it the control displays Control Not Registered. This only occurs when I open the listbox editor, but I am never prompted for my serial number.

I have tried reinstalling, uninstalling and installing again, and I have tried running VS2008 as administor and not running as administrator.

I have removed the lidor reference from the licx file and added a fresh control and nothing seems to help.

Nothing seems to work. Please help.
LidorSystems Support
Posted: Wednesday, April 07, 2010 9:44:13 PM

Rank: Administration

Joined: 6/10/2005
Posts: 637
Points: 1,365
Are you are building an EXE or a DLL file which contains IntegralUI ListBox?
spbrady
Posted: Wednesday, April 07, 2010 10:42:35 PM
Rank: Newbie

Joined: 4/7/2010
Posts: 8
Points: 24
Location: USA
Good point!

What I describes is occuring for a DLL.

I have an EXE that uses the UIListBox and I am not seeing this issue on my development PC or PC which I install the software.
LidorSystems Support
Posted: Wednesday, April 07, 2010 10:53:06 PM

Rank: Administration

Joined: 6/10/2005
Posts: 637
Points: 1,365
When building applications (EXE files), the registration and rebuild of your project will do the work. However, when you are building your own DLL which includes the IntegralUI ListBox control, then you need to use a different method. This happens because by default the .NET licensing framework only looks for license resources in the entry assembly (ie exes). This means that the computer that builds the entry assembly (exe) must normally have a design time license installed for any controls used (whether directly or indirectly) so that the license can be compiled into the entry assembly.

To set the license during runtime, just use the License method. Here is how:

If the control is used in the Form in VS Designer (regardless of whether you are designing a Library or an Application), then use the License method prior the call of InitializeComponent method. In this way the license will be set prior the ListBox constructor is called.

Code:
LidorSystems.IntegralUI.Lists.ListBox.License("Your license key");
InitializeComponent();


If the control is used outside the VS Designer, then use the License method prior the call of the ListBoxconstructor:

Code:
LidorSystems.IntegralUI.Lists.ListBox.License("Your license key");
LidorSystems.IntegralUI.Lists.ListBox _listBox = new LidorSystems.IntegralUI.Lists.ListBox();


The License method doesn;t exist in v1.1. It is added in v1.2. This version will be sent to you shortly. There are no compatibility issues with v1.1, so you only need to uninstall the current version install the new one and rebuild your project using License method.
spbrady
Posted: Wednesday, April 07, 2010 11:01:51 PM
Rank: Newbie

Joined: 4/7/2010
Posts: 8
Points: 24
Location: USA
Great, thanks for your help!

Very quick and accurate response, I am impressed.
spbrady
Posted: Wednesday, April 07, 2010 11:04:53 PM
Rank: Newbie

Joined: 4/7/2010
Posts: 8
Points: 24
Location: USA
I found that by adding the UIListbox control to the EXE that would be calling the DLL containing the UIListbox control it added an entry to the EXE's license file.

I removed the control from the EXE since it does not need it, I left the license file with the reference to UIListbox.

If I do this it works fine on others PC running the software and does not prompt for the serial number.
LidorSystems Support
Posted: Wednesday, April 07, 2010 11:08:53 PM

Rank: Administration

Joined: 6/10/2005
Posts: 637
Points: 1,365
Yes, this is another way to solve the issue. However, it is more like a trick, :). When the project is rebuilt, the information from licenses.licx fils is used and the license information is embedded with your exe file.
spbrady
Posted: Wednesday, April 07, 2010 11:28:14 PM
Rank: Newbie

Joined: 4/7/2010
Posts: 8
Points: 24
Location: USA
I upgraded to version 1.2

Now when I use the class containing my form class I am shown and about box. It does not want me to provide my serial number, it is just an about box.

It is displayed once on the first use of the DLL that contains the UIListBox control.
LidorSystems Support
Posted: Wednesday, April 07, 2010 11:39:58 PM

Rank: Administration

Joined: 6/10/2005
Posts: 637
Points: 1,365
Do you have used the License method as described?
spbrady
Posted: Wednesday, April 07, 2010 11:41:09 PM
Rank: Newbie

Joined: 4/7/2010
Posts: 8
Points: 24
Location: USA
Yes, in the DLL I added as you mentioned. In the EXE I did not add anything.

I am getting the about box in the DLL and the EXE that uses the the Lidor control.
LidorSystems Support
Posted: Wednesday, April 07, 2010 11:43:47 PM

Rank: Administration

Joined: 6/10/2005
Posts: 637
Points: 1,365
The references in your project are pointing to the new installation directory in the \Bin subfolder, where dlls for v1.2 are present, correct?
spbrady
Posted: Wednesday, April 07, 2010 11:55:38 PM
Rank: Newbie

Joined: 4/7/2010
Posts: 8
Points: 24
Location: USA
I removed version 1.1 (I had neglected to do this), I uninstalled 1.2 and reinstalled.

The EXE now does not show the about box.

Unfortunately the when the DLL is called (containing the UIListBox) the about box still appears.

I tried removing it from the LICX file and re-adding the control and I am using

Code:

LidorSystems.IntegralUI.Lists.ListBox.License("LICENSE");
InitializeComponent();


The correct DLL's are referenced.
spbrady
Posted: Wednesday, April 07, 2010 11:59:48 PM
Rank: Newbie

Joined: 4/7/2010
Posts: 8
Points: 24
Location: USA
My bad...

I had added the suggested code to my constructor just before InitializeComponent(). I did not add it the overloaded contructor as well.

That takes care of it!

Again thanks for the help, you have been great!
LidorSystems Support
Posted: Thursday, April 08, 2010 12:02:06 AM

Rank: Administration

Joined: 6/10/2005
Posts: 637
Points: 1,365
We will send you a sample projects: a sample DLL and a sample EXE which uses this dll, to see how it works. Compare the samples with your project and see what is missing.

Expect to receive the samples in 15 min.
Users browsing this topic
Guest


Forum Jump
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.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.0 (NET v2.0) - 10/10/2006
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.196 seconds.