Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-07-2009, 06:41 PM
waynelum waynelum is online now
Guest
 
Join Date: 07-16-2008
Posts: 4
VisualBuild error: "Class not registered"

I got a strange error recently with VisualBuild Pro 6.7a running on XP SP2.

If I run VisualBuild manually (not from the Scheduler) and build a single step, it displays an error dialog box:

"Initialization of Visual Build Pro builder component failed: Class not registered"

After you dismissed the error dialog box and try running any step, the error goes away. However, if you close and re-open VisualBuild, the error dialog box will come up once again for one time. The error dialog box also shows up if you click on the Help|About and it does not display the licensing information properly. After you close the error dialog and click on Help|About again, you won't see the error dialog and the licensing information is displayed correctly.

The VisualBuild scripts that run from the Scheduler do not seem to exhibit this problem.
Reply With Quote
  #2  
Old 07-07-2009, 06:57 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
We haven't heard of that when run manually, but a few users have encountered this when run from a scheduled task: http://www.kinook.com/Forum/showthre...?threadid=2691

VBP is calling CoCreateInstance for the CLSID of the Builder component, which is returning an error code of REGDB_E_CLASSNOTREG. One possibility is that some registry values are corrupt (you could try reinstalling VBP), but since it only happens sporadically, my guess is that something (active scanning virus or other resident software?) is sometimes interfering with the normal registry lookup. You could try disabling or uninstalling background apps, or start Windows in Safe Mode, to see if it helps isolate the problem.

The DCOM standard marshaller also gets involved in the creation process (oleaut32.dll, registry key
HKEY_CLASSES_ROOT\CLSID\{00020424-0000-0000-C000-000000000046} and others), and if any of that is messed up it can cause issues as well.

Other options would be to repair Windows or repave the machine (format drive and reinstall Windows).
Reply With Quote
  #3  
Old 07-07-2009, 07:36 PM
waynelum waynelum is online now
Guest
 
Join Date: 07-16-2008
Posts: 4
I think this somehow has something to do with how VisualBuild reads the licensing information from the registry.

Somehow, when you run a buildstep or click on Help|About it would need to retrieve your licensing key. The first time, it tries to read the license key, it would display the error message and not display my license key properly in the Help|About. Any subsequent tries seems to succeed as I am able to see my license key in the help about and I do not see the error dialog box anymore.

However, if I close and restart VisualBuild it goes through the same issues again.

I have turned off the virus scanner and removed/re-install VisualBuild numerous times to no avail.

When I run a RegMon, I noticed that VisBuildPro.exe has numerous "BUFFER OVERFLOW" errors when reading the licensing information from this registry key: "HKEY_LOCAL_MACHINE\SOFTWARE\Licenses". This led me to think something is whacky with VisualBuild not reading my license key properly on the first try, but succeed on subsequent retries with the same session.
Reply With Quote
  #4  
Old 07-07-2009, 07:42 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
VBP v6 doesn't create the builder component until a) the first time a build is initiated or b) the About dialog is shown. I do see some BUFFER_OVERFLOW results when querying under HKLM\Software\Licenses, but they're immediately followed by a successful call to the same key (apparently with a larger buffer), so I don't think that's the problem.

At any rate, we use a third-party component to implement licensing (and don't create/lookup license info directly in our code), but I suspect that uninstalling and reinstalling would reinitialize this information.
Reply With Quote
  #5  
Old 07-07-2009, 07:50 PM
waynelum waynelum is online now
Guest
 
Join Date: 07-16-2008
Posts: 4
On the machines that work; I click once on the Help|About dialog box and it displays my licensing information properly at the bottom.

On this machine with the problem; I need to click on Help|About twice (and dismiss the error dialog in between) in order for my licensing information to be displayed (i.e. it does not show the "Registered to" information on the first click of the Help|About menu).
Reply With Quote
  #6  
Old 07-07-2009, 07:51 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
If VBP isn't able to initialize the builder component, it won't be able to display license information, since it retrieves the information from it. Apparently, the second time creating works, but I have no idea why it doesn't work the first time on that particular machine. The symptoms suggest that something is sometimes interfering with the normal COM creation logic.

Please ZIP and send to support@kinook.com:
1) The info from Help | About | Install Info
2) A screen shot of System properties (Windows+Break)
3) The RegMon log (filtered on visbuild) for starting VBP and showing the About dialog

Since it does work from a scheduled task, another option might be to create a task, then right-click and Run the task to manually start VBP.
Reply With Quote
  #7  
Old 07-08-2009, 06:14 PM
waynelum waynelum is online now
Guest
 
Join Date: 07-16-2008
Posts: 4
I have email the information requested.

Thanks.
Reply With Quote
  #8  
Old 07-08-2009, 07:45 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Everything in the regmon log looks consistent with what I get from a machine that doesn't manifest this problem. I would suggest trying some of the other suggested workarounds.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:06 PM.


Copyright © 1999-2023 Kinook Software, Inc.