We have a few VB6 applications that use an OCX that we developed. We setup a new XP build machine for all our projects. On this new XP build machine, the projects that use one of our OCX won't compile and give us the error "Cannot load control {control_name}; license not found.". We have tried the registry fix provided by Microsoft with no change.
The OCX is our own project that references the following:
Did you register this control on the system by using RegSvr32 ?
Yes, we have compiled the OCX on the XP build machine and we have also unregistered and registered using regsvr32. We are still having the problem. We have also made sure the OCX project property "Require license key" is not checked.
Did you copy over the license file? Sounds like the .VBL file is missing or not in the right location.
I cannot locate and i'm not familiar with any .VBL file. The OCX project is NOT set to require a license file. This project is several years old, and this has never happened before, which is what makes this really confusing.
That is odd, I have only saw this message when the control is set to use a license and the .vbl file is missing. I've got an old one here s well written in VB5 and when I setup a new machine it will alwys give that message until I have the proper .vbl file in place.
Can you open and build the ocx project on this new system?
Yes, we can open the VB6 project on the new build machine and compile the OCX with no problems. Just the EXE projects that have the custom user control on a form won't compile with the missing license problem.
When I open our VB6 EXE project that uses the OCX control giving the license not found error, I have Process Monitor telling me the following HKCR\Licenses keys are looked for, but not found. Those GUID, I can not find any information for any where. I have no idea what they are for.
Bookmarks