Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Class not registered" error running exe

Status
Not open for further replies.

paulhen

Programmer
Jul 3, 2003
1
US
Hi

I keep getting the message "Class not registered. Looking for object with CLSID...." when I run my VB executable on any machine other than the one on which I have Visual Studio installed. I've copied in the references and components that look relevant, and have run regsvr32 on them, but still get the message.

How can I fix this?

Thanks

Paul
 
Hmm... the only thing I can think of is that you didn't explicitly install the VB runtime environment on the target machines. It's a DLL called "msvbvm60.dll" for VB6 and "msvbvm50.dll" for VB5 (this wouldn't be applicable for .NET, I think, though I've only briefly played with .NET and haven't tried to deploy anything in it, so I'm not sure). The VB runtime environment is dependent on some other files, too, but I can't recall which off the top of my head. Most machines should have the necessary files to support the VB runtime, especially if they've got later versions of MDAC installed (I'm thinking 2.5 and up).

Try copying the msvbvm60.dll file from your box (should be in WINNT/System32 for NT/2000, Windows/System for 95/98/ME, and WINDOWS/System32 for XP) to the appropriate directory on the target box (see above). Give it a go with regsvr32, the run your app and see if it helps.

Other than that, it could be any number of things. But right now, my money's on the VB runtime not being there...

HTH,
jp
 
Use an installer rather than copying the executable. It will (should) pick up all the dependencies and package them into an installable package.

VB contains the Packaging and Deployment Wizard, which mostly worksmost of the time. You acn also download MS Installer. There is also 3rd party installers such as INNO

A search on this forum will also give other ideas


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top