Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM
  New Posts New Posts RSS Feed - License problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedLicense problem

 Post Reply Post Reply
Author
Message
blazej View Drop Down
Groupie
Groupie


Joined: 09 February 2005
Location: Canada
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote blazej Quote  Post ReplyReply Direct Link To This Post Topic: License problem
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
blazej View Drop Down
Groupie
Groupie


Joined: 09 February 2005
Location: Canada
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote blazej Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2010 at 7:26am
Hi,
so just copy lic file to path you reregister.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.