Click here to Skip to main content
15,883,990 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

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.
 
Share this answer
 
There are two regasm.exe in the framework.
Make sure you're using the 32 bit one, not 64 bit! That could be the reason you don't get the registered COM object available in VB6.

Use C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasem.exe

Cheers.<</xml>
 
Share this answer
 
Comments
CHill60 2-Dec-15 9:20am    
I'm guessing you got downvoted because the original post is over 3 years old. However this is a valid point so I've upvoted this solution. In general however, I would advise avoiding responding to old posts.
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
 
Share this answer
 
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.
 
Share this answer
 
Comments
Dave Kreskowiak 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 11-Mar-12 0:41am    
i m register scrrun.dll but showing same error
jami mour 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
use chilkat software then you can solve your problem
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900