Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / March 2004

Tip: Looking for answers? Try searching our database.

MSComCtl2.MonthView licensing problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brian Abbott - 20 Jan 2004 16:31 GMT
Hi

I'm tring to deploy MSComCtl2.MonthView contained in MSCOMCT2.OCX.  It gets
installed via Installshield using mscomct2.msm, which in _theory_ should do
all the registry stuff.

Mostly it deploys OK, but I've got a Win98 PC which gives this error
whenever it's instantiated:

"80040112: Appropriate license for this class not found"

Reinstalling makes no difference.

Does anyone (MS?) have a .reg file, or some other fix that would get me over
this?

Thanks in advance.

Brian Abbott
Alex Dybenko - 20 Jan 2004 17:10 GMT
normally registering is enough. only when you create control during
runtime - you need design license. how you are using it?

Signature

Alex Dybenko (MVP)
http://Alex.Dybenko.com

> Hi
>
[quoted text clipped - 15 lines]
>
> Brian Abbott
Brian Abbott - 20 Jan 2004 18:54 GMT
Hi Alex

Yes, I'm creating it programmatically at runtime.

> normally registering is enough. only when you create control during
> runtime - you need design license. how you are using it?
[quoted text clipped - 21 lines]
> >
> > Brian Abbott
Alex Dybenko - 20 Jan 2004 20:02 GMT
well, in this case you have to add licenses at runtime. see online help for
licenses.add method (in case you use VB6)

Signature

Alex Dybenko (MVP)
http://Alex.Dybenko.com

> Hi Alex
>
[quoted text clipped - 25 lines]
> > >
> > > Brian Abbott
"Billy Yao [MSFT]" - 21 Jan 2004 05:36 GMT
Hello Brian,

Thank you for using MSDN Newsgroup! My name is Billy and it's my pleasure to assist you
with this issue.

Thanks to Alex's great help on your issue. You can use the licenses.add method to get the
design license, or you can use the utility we provided to fix this design-time license used by
ActiveX controls installed with VB 5.0 or 6.0. See the following article below:

194751 FILE: VB6Cli.exe Fixes License Problems with Visual Basic 6.0
http://support.microsoft.com/?id=194751

For VC++ information, please reference the following KBs:

151771 LICREQST.EXE Requesting a License Key from an Object
http://support.microsoft.com/?id=151771

228530 BUG: Access Violation in Ole32.dll When Creating an ATL Composite Control
http://support.microsoft.com/?id=228530

Brian, does that answer your question? Please apply our suggestions above and let us
know if this helps resolve your problem. If there is anything more we can do to assist you,
please feel free to post it in the group.

Best regards,

Billy Yao
Microsoft Online Support
----------------------------------------------------
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.
Brian Abbott - 21 Jan 2004 16:13 GMT
Hi Billy

Well, I tried running vb6cli.exe, but it kept telling me that vb6 runtime
wasn't installed, even after I d/l'd and installed vbrun60.exe to be sure.

In the end I've copied the HKEY_CLASSES_ROOT\Licenses hive in its entirety
from a Win98 PC that works ok and installed it into the defective PC.  That
cured it.

Isn't there a simple .reg file available with just the entry that's needed?

Cheers

Brian Abbott

> Hello Brian,
>
[quoted text clipped - 28 lines]
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only. Thanks.
Brian Abbott - 21 Jan 2004 16:13 GMT
Hi Billy

Well, I tried running vb6cli.exe, but it kept telling me that vb6 runtime
wasn't installed, even after I d/l'd and installed vbrun60.exe to be sure.

In the end I've copied the HKEY_CLASSES_ROOT\Licenses hive in its entirety
from a Win98 PC that works ok and installed it into the defective PC.  That
cured it.

Isn't there a simple .reg file available with just the entry that's needed?

Cheers

Brian Abbott

> Hello Brian,
>
[quoted text clipped - 28 lines]
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only. Thanks.
Matthew Bumgarner [MSFT] - 28 Jan 2004 21:13 GMT
Hello Brian,

I could not find a .reg file to send to you.  One thing you may be able to
do is to find out what key is being used when try to instantiate the
control is to download RegMon from http://www.sysinternals.com.  Run a
trace on the Windows 98 computer that works while you instantiate the
control. Then run a second trace on the computer where this does not work
while trying to instantiate the control.  You can save the traces as text
files and then compare the two and see if that indicates the key with the
problem.  Then use the good computer to create a .reg file.

I would also be curious to know if the version of Mscomct2.ocx is different
on the computer where this works and the computer where it does not work.

Thank you, Matt Bumgarner
Microsoft Developer Support for Access

This posting is provided "AS IS", with no warranties, and confers no rights.
Orlanzo Ross - 29 Jan 2004 03:24 GMT
Hi Brian,

In what type of application are you attempting to use this control?  Have
you created an Access , FoxPro, or VB Runtime time application?  If the
application is packaged using the Packaging Wizard from either Visual Basic
or from a version included with an edition of Office Developer, do you
continue to encounter the licensing error after the packaged has been
deployed on a target machine?

You should also take a look at the following articles:

192693 BUG: License Error with ActiveX Control Added at run-time
http://support.microsoft.com/?id=192693

Kind regards,
Orlanzo Ross
Microsoft Online Support
Brian Abbott - 21 Jan 2004 16:13 GMT
Hi Billy

Well, I tried running vb6cli.exe, but it kept telling me that vb6 runtime
wasn't installed, even after I d/l'd and installed vbrun60.exe to be sure.

In the end I've copied the HKEY_CLASSES_ROOT\Licenses hive in its entirety
from a Win98 PC that works ok and installed it into the defective PC.  That
cured it.

Isn't there a simple .reg file available with just the entry that's needed?

Cheers

Brian Abbott

> Hello Brian,
>
[quoted text clipped - 28 lines]
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only. Thanks.
Sir Mycroft - 15 Mar 2004 01:22 GMT
I had the same problem with the Common Dialog controls - if this is
really the same you might have a problem.  The problem was that MS
would not allow any modifications to controls on machines that did not
have a delvolopment license (i.e. have VB, VS, C++ installed).
Although I was only working on a small project in MS Access, since
Office does not quilify as an development liciense I had to switch to
my machine that has VS .net installed just to work with the control.
It does not effect where the database/application can be used, only
that any time the control was modified you needed a system with a
developers license.  Hope this helps.

Mycroft

>Hi Alex
>
[quoted text clipped - 25 lines]
>> >
>> > Brian Abbott
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.