Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB6 VB.NET
Dear all
 
Have a nice day.
 

 
I have one problem in vb6. I created a .tlb file in VB.net 2005 by adding Com class to project. I built the project, I got .tlb file and .dll files while building project, i selected "Register for Com interop" from project properties and built. It registered autometically and I can use created .tlb file in that PC in Vb6 working fine. if I deploy application to another PC and run I am getting "Error 429 ActiveX Component Can't create object" run time error. What I need to do? Please help me as soon as possible. I can't deploy the application to client due to above error.
 
one possible solution is to install .net frame work on client pc i never want to install .net framework any other solution will be most appreciatable.
 

 
Thank you,
 
I will be grateful to u
Posted 10-Mar-12 17:31pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The most common problem people get with code on this site is VB's super friendly error 429, "ActiveX Can't Create Object". This might happen to you when you're running in the VB IDE, or when you're trying to distribute a EXE using vbAccelerator controls to a new machine.
 
As the solution, you need to re-registering scrrun.dll. This dll contains libraries for reading and writing scripts and text files. scrrun.dll is a system process that is needed for your Windows system to work properly.
 
scrrun.dll is available at C:\WINDOWS\system32 folder and use RegSvr32 command to register.
  Permalink  
Comments
Dave Kreskowiak at 11-Mar-12 0:22am
   
So where in the OP's post did you find anything about needing "scrrun.dll" or scripting support??
jami mour at 11-Mar-12 0:41am
   
i m register scrrun.dll but showing same error
jami mour at 11-Mar-12 1:07am
   
i m using windows xp on both pcs. regasm.exe tool to register .net dlls . but problem is i never want to install .net framework on client pc any other tool register .net dlls. if i install .net framework its working
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

It can't create the object because COM-based (or exposed) libraries have to be registered on the machine or else the code can't find them
 
For a .NET assembly, this means using REGASM to register the assembly. For non-.NET assemblies, it's REGSVR32.
 
If you create an installer for your application, the installer usually takes care of this little detail for you.
 
If you're just copying files to the target machine, you'll have to manually register the .DLL.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

use chilkat software then you can solve your problem
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Download the required dll file and copy the extracted file to this folder:
 
c:\windows\system32
 
OR
 
Reregister Concerning File

If you are getting a file name in the error description, then it is possible that particular file is not properly registered in the system registry database. In such a case, you need to re-register the file with the help of Command Prompt.
 
Close all open programs, if any.
Click Start, select Run.
Type CMD and press ENTER
 
Type the following command:Regsvr32 For instance, if the name of the OCX file is vbalexpbar6.ocx, then type the following command: regsvr32 vbalexpbar6.ocx
Press ENTER to execute the command.
Finally, type EXIT and press ENTER to close Command Prompt.
 
This will fix error code 429.

If problem still occurs then perform the following tasks::
 
Reinstall Windows Script
Repair Windows Script File Information in Registry
 
If problem still occurs then click here to fix Error 429
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 20 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100