Custom OCX; License not found
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:
{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}, MSCOMCTL.OCX
{662901FC-6951-4854-9EB2-D9A2570F2B2E}, WINHTTP.DLL
{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}, IEFRAME.DLL
{F5078F18-C551-11D3-89B9-0000F81FE221}, MSXML6.DLL
{00020430-0000-0000-C000-000000000046}, STDOLE2.TLB
How do we fix this? We are out of ideas to get past this.
Re: Custom OCX; License not found
I don't think you developed MSCOMCTL.OCX, unless you over-wrote it (with a different key)
Re: Custom OCX; License not found
The OCX is our own project that references the following:
{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}, MSCOMCTL.OCX
{662901FC-6951-4854-9EB2-D9A2570F2B2E}, WINHTTP.DLL
{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}, IEFRAME.DLL
{F5078F18-C551-11D3-89B9-0000F81FE221}, MSXML6.DLL
{00020430-0000-0000-C000-000000000046}, STDOLE2.TLB
Re: Custom OCX; License not found
Those all work under XP. What is YOUR OCX, and the key?
Re: Custom OCX; License not found
Quote:
Originally Posted by
dglienna
Those all work under XP. What is YOUR OCX, and the key?
Our custom control used on the form is:
{4791C3B3-6C6F-422A-900A-00978799AAF2}
The OCX is:
{ECFB0155-4F7E-4E4A-B89E-5204BD830E4A}
Re: Custom OCX; License not found
Post the code used IN the controls, and maybe something will stand out.
Re: Custom OCX; License not found
Did you register this control on the system by using RegSvr32 ?
Re: Custom OCX; License not found
Quote:
Originally Posted by
HanneSThEGreaT
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.
Re: Custom OCX; License not found
If it helps, my VB6 project file for the OCX is below.
Quote:
Type=Control
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\..\..\WINDOWS\system32\stdole2.tlb#OLE Automation
Reference=*\G{F5078F18-C551-11D3-89B9-0000F81FE221}#4.0#0#..\..\..\..\WINDOWS\system32\msxml6.dll#Microsoft XML, v4.0
Reference=*\G{662901FC-6951-4854-9EB2-D9A2570F2B2E}#5.1#0#..\..\..\..\WINDOWS\system32\WINHTTP.dll#Microsoft WinHTTP Services, version 5.1
Object={EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0; ieframe.dll
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0; mscomctl.ocx
UserControl=MyUserControl.ctl
Form=frmPrinterSetup.frm
Module=modGetPrinterName; GetPrinterName.bas
Module=MAPG; MAPG.bas
Module=MPrintSample; MPrintSample.bas
Class=APG; CApg.cls
Class=Sample; Sample.cls
Module=PrinDev; ..\..\GLOBAL5\PRINDEV.bas
Form=frmViewSample.frm
Form=..\..\GLOBAL5\Companybox.frm
Module=modCompanybox; ..\..\GLOBAL5\Companybox.bas
Module=modMain; modMain.bas
Class=ThirdSampleJob; ThirdSampleJob.cls
Form=frmSampleJobs.frm
Startup="(None)"
HelpFile=""
Title="CompanyThirdMyUserControl"
ExeName32="CompanyThirdSample4.ocx"
Command32=""
Name="CompanyThirdMyUserControl"
HelpContextID="0"
CompatibleMode="2"
CompatibleEXE32="CompanyThirdSample4.ocx"
VersionCompatible32="1"
MajorVer=4
MinorVer=0
RevisionVer=28
AutoIncrementVer=1
ServerSupportFiles=0
VersionCompanyName="Company"
CompilationType=0
OptimizationType=0
FavorPentiumPro(tm)=0
CodeViewDebugInfo=0
NoAliasing=0
BoundsCheck=0
OverflowCheck=0
FlPointCheck=0
FDIVCheck=0
UnroundedFP=0
StartMode=1
Unattended=0
Retained=0
ThreadPerObject=0
MaxNumberOfThreads=1
ThreadingModel=1
DebugStartupOption=0
[MS Transaction Server]
AutoRefresh=1
Re: Custom OCX; License not found
Did you copy over the license file? Sounds like the .VBL file is missing or not in the right location.
Re: Custom OCX; License not found
Quote:
Originally Posted by
DataMiser
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.
Re: Custom OCX; License not found
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?
Re: Custom OCX; License not found
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.
Re: Custom OCX; License not found
On a side note, I tried compiling the OCX with the require license property set so I could get a license file. Even that didn't work, same problem.
Re: Custom OCX; License not found
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.
Code:
HKCR\Licenses\06BE90B0-2D30-11d0-9441-00A0C90F26F1
HKCR\Licenses\46fd8960-d06c-11cf-b364-00aa0060d393
HKCR\Licenses\5f54e750-ce26-11cf-8e43-00a0c911005a
The GUID for our one custom user control in our OCX giving the license error is:
{4791C3B3-6C6F-422A-900A-00978799AAF2}
Our custom user control (OCX) has one form that has the following controls on it:
Code:
{1EFB6596-857C-11D1-B16A-00C0F0283628} MSComctlLib.TabStrip
{0057D0E0-3573-11CF-AE69-08002B2E1262} SHDocVwCtl.WebBrowser
The OCX project has the following references and objects:
Code:
{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B} IEFRAME.DLL 1.1
{F5078F18-C551-11D3-89B9-0000F81FE221} MSXML6.DLL 4.0
{00020430-0000-0000-C000-000000000046} STDOLE2.TLB 2.0
{831FDD16-0C5C-11D2-A9FC-0000F8754DA1} MSCOMCTL.OCX 2.1
{662901FC-6951-4854-9EB2-D9A2570F2B2E} WINHTTP.DLL 5.1
I hope this gives someone an idea of what is giving me this error, i'm running out of time to get this running.
Re: Custom OCX; License not found
Google this: HKCR\Licenses\5f54e750-ce26-11cf-8e43-00a0c911005a
Re: Custom OCX; License not found
Thanks. I had done that already. A virus is know to add that, but my problem is that it doesn't exist.
Re: Custom OCX; License not found
Don't know what happened to my last post. GOOGLE THIS: HKCR\Licenses\5f54e750-ce26-11cf-8e43-00a0c911005a
Re: Custom OCX; License not found
I've run into this before, and although I don't recall the details, what comes to mind to try first is to remove the control (all instances and component reference) from the project, save it and exit VB. Then go back in and add the control again. If that doesn't work, I'd be wondering about the access privileges it might need to load the stuff it uses, such as ieframe.dll.
Incidentally, do you have the version compatibility set to Binary?
Re: Custom OCX; License not found
OK, I'll post it:
Quote:
Threat Information for "Win32.FunLove.4608"
Removal
Summary
Description
Technical Details
Removal Top
StopSign will automatically remove this infection with a paid membership.
Summary Top
Name: Win32.FunLove.4608
Aliases:
Date Discovered: 2007-05-08
Protection Added: 2007-05-16
Description Top
-- Ease of Removal
1: Consistently named
2: Consistent file contents
3: Creates new registry entries with consistent data
4: Uses running processes
-- Privacy Risks/Security Changes
1: Mimics legitimate file names
-- Damage/Intrusion/Annoyance
1: Creates new files
2: Downloads other threats
-- Propagation/Saturation
1: Infects with other exploitation method
Technical Details Top
Added Directory/File:
FilePath: %SYSTEMDIR%\scanregw.exe
Added Directory/File:
FilePath: %WINDIR%\rundll16.exe
Added Directory/File:
FilePath: %SYSTEMDIR%\?.zip*
Added Directory/File:
FilePath: %SYSTEMDIR%\Update.exe
Added Directory/File:
FilePath: %SYSTEMDIR%\MSWINSCK.OCX
Added Directory/File:
FilePath: %SYSTEMDIR%\mswinsck.ocx*
Added Directory/File:
FilePath: %WINDIR%\rundll16.exe*
Added Directory/File:
FilePath: %SYSTEMDIR%\Winzip.exe
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\BC96F860-9928-11cf-8AFA-00AA00C00905
Added Registry Key:
Key: HKCR\Licenses\72E67120-5959-11cf-91F6-C2863C385E30
Added Registry Key:
Key: HKCU\Control Panel\MExchange
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\57CBF9E0-6AA7-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKCR\Licenses\096EFC40-6ABF-11cf-850C-08002B30345D
Added Registry Key:
Key: HKCR\Licenses\DC4D7920-6AC8-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\9E799BF1-8817-11cf-958F-0020AFC28C3B
Added Registry Key:
Key: HKCR\Licenses\5f54e750-ce26-11cf-8e43-00a0c911005a
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\MSWinsock.Winsock
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\4D553650-6ABE-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKCR\CLSID\{248DD896-BB45-11CF-9ABC-0080C7E7B78D}
Added Registry Key:
Key: HKCR\Licenses\B1EFCCF0-6AC1-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\7C35CA30-D112-11cf-8E72-00A0C90F26F8
Added Registry Key:
Key: HKCR\Licenses\556C75F1-EFBC-11CF-B9F3-00A0247033C4
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\CLSID\{248DD896-BB45-11CF-9ABC-0080C7E7B78D}
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\2c49f800-c2dd-11cf-9ad6-0080c7e7b78d
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\F4FC596D-DFFE-11CF-9551-00AA00A3DC45
Added Registry Key:
Key: HKCR\MSWinsock.Winsock
Added Registry Key:
Key: HKCR\Licenses\899B3E80-6AC6-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\72E67120-5959-11cf-91F6-C2863C385E30
Added Registry Key:
Key: HKCR\Licenses\4250E830-6AC2-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKCR\TypeLib\{248DD890-BB45-11CF-9ABC-0080C7E7B78D}
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\DC4D7920-6AC8-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKCR\Licenses\78E1BDD1-9941-11cf-9756-00AA00C00908
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\096EFC40-6ABF-11cf-850C-08002B30345D
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\5f54e750-ce26-11cf-8e43-00a0c911005a
Added Registry Key:
Key: HKCR\Licenses\190B7910-992A-11cf-8AFA-00AA00C00905
Added Registry Key:
Key: HKCR\Licenses\E32E2733-1BC5-11d0-B8C3-00A0C90DCA10
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\B1EFCCF0-6AC1-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKCR\Licenses\6FB38640-6AC7-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\MSWinsock.Winsock.1
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\556C75F1-EFBC-11CF-B9F3-00A0247033C4
Added Registry Key:
Key: HKCR\Interface\{248DD892-BB45-11CF-9ABC-0080C7E7B78D}
Added Registry Key:
Key: HKCR\Licenses\BC96F860-9928-11cf-8AFA-00AA00C00905
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\899B3E80-6AC6-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKCR\Licenses\57CBF9E0-6AA7-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Interface\{248DD892-BB45-11CF-9ABC-0080C7E7B78D}
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\4250E830-6AC2-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\TypeLib\{248DD890-BB45-11CF-9ABC-0080C7E7B78D}
Added Registry Key:
Key: HKCR\MSWinsock.Winsock.1
Added Registry Key:
Key: HKCR\Licenses\9E799BF1-8817-11cf-958F-0020AFC28C3B
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\78E1BDD1-9941-11cf-9756-00AA00C00908
Added Registry Key:
Key: HKCR\Licenses\4D553650-6ABE-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKCU\Control Panel\BMale
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\E32E2733-1BC5-11d0-B8C3-00A0C90DCA10
Added Registry Key:
Key: HKCR\Licenses\7C35CA30-D112-11cf-8E72-00A0C90F26F8
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\190B7910-992A-11cf-8AFA-00AA00C00905
Added Registry Key:
Key: HKLM\SOFTWARE\Classes\Licenses\6FB38640-6AC7-11cf-8ADB-00AA00C00905
Added Registry Key:
Key: HKCR\Licenses\2c49f800-c2dd-11cf-9ad6-0080c7e7b78d
Added Registry Key:
Key: HKCR\Licenses\F4FC596D-DFFE-11CF-9551-00AA00A3DC45
Added Registry Value:
Key: HKLM\%CURRENTVERSIONREG%\Run Value: ScanRegistry
Added Registry Value:
Key: HKCU\%CURRENTVERSIONREG%\Explorer\Advanced Value: WebView
Added Registry Value:
Key: HKCU\%CURRENTVERSIONREG%\Explorer\Advanced Value: ShowSuperHidden
http://research.eacceleration.com/th...?threat=198935