Print Page | Close Window

License problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: ActiveX COM
Forum Description: Topics related to Codejock ActiveX COM products
URL: http://forum.codejock.com/forum_posts.asp?TID=17012
Printed Date: 21 November 2024 at 4:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: License problem
Posted By: blazej
Subject: License problem
Date Posted: 27 July 2010 at 4:41pm
Hi all,

Here's the problem I have.

My user account does not have admin privileges (but I have the password for such account so I can install things).

I have a project that uses CommandBars and DockingPane v. 13.1.0.

I installed Codejock but when I try to open my form in the Designer (Visual Studio 2008), I get an error about controls not registered.

So I register the OCX files manually using regsvr32.

Now I can open my form in the Designer.

But only one time :-))))

If close the Designer, run the program, and try to re-open the Designer, I get the following: "You must have a license to use this ActiveX control".

The only workaround is to: close VS, run the COM Registrator, then re-register manually (why???), re-open VS, open form in Designer, edit form, save. If I want to re-enter into the Designer later, I have to repeat these steps.

So it's as if the design license was valid only one time :-)

God, I love ActiveX, don't we all?

I was hoping that someone could tell me how to fix this permanently.

Also, BTW, I can build and run my app at anytime, even if the for doesn't open in the Designer. The app builds and runs fine.

Best,
Michal



Replies:
Posted By: Oleg
Date Posted: 28 July 2010 at 4:52am
Hi,

Sounds very strange. I see only one reason - something always reregister this ActiveX to another path.   Maybe you have some code in your project that register it or you have some application that also have CommandBars and reregister it.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: JantjeKeizer
Date Posted: 28 July 2010 at 5:19am
Probably a sandbox issue.

@Oleg Take a look at RegOverridePredefKey and you might want to build in support for local registration per user.
Maybe with a checkbox in the registrator.
It's very easy to use. You simply map the regkey from HKCR to HKCU\\Software\Classes.
Windows automatically scans the user keys first.
You don't need administrative privileges that way.


Posted By: blazej
Date Posted: 28 July 2010 at 10:28am
Hi,

Yes, we are re-registering the components to a different path. But:

- This is mostly because the initial "COM Registrator" doesn't seem to be registering them at all. Like I described, after running this program (successfully, I should add) Visual Studio tells me that the ActiveX controls are not registered. So I redo it manually.

- For years I've had a different copy of the OCX controls registered on my dev machine, and it's always worked.

But if it is really related to the path, we can probably at least find a better workaround :-)

Best,
Michal


Posted By: Oleg
Date Posted: 29 July 2010 at 7:26am
Hi,
so just copy lic file to path you reregister.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net