943,640 Members | Top Members by Rank

Ad:
Oct 18th, 2008
0

Class not Registered error

Expand Post »
I have a VB6 program running fine on the machine I wrote it. When I create and exe of the program that works also. If I export the program to another machine I get a 'Class not registered. Looking for object with CLSID {00000010-0000-0010-8000-00AA006D2EA4}' error.

After a bit of research I found here It says that This error occurs when the Visual Basic 6.0 project references the Microsoft Data Access Objects (DAO) 3.6 Object Library (DAO360.dll) and not DAO350.dll. The {00000010-0000-0010-8000-00AA006D2EA4} CLSID is associated with DAO350.dll.

It goes on to say that to fix it you can resolve this problem by setting the Connect property of the intrinsic Data control to Access 2000, which uses DAO360.dll. Unfortunately I don't appear have that option in my VB6 compiler. So laterally thinking I installed DAO350.dll on the other machine. Now I get a 'Data Access Error' instead!

The .mdb database is installed in the directory the machine is expecting it to be in so I don't think it's because it cant find the file. But why wont it work?

Many thanks for any help.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Entropy1024 is offline Offline
20 posts
since Oct 2008
Oct 19th, 2008
0

Re: Class not Registered error

try to register the componenet with windows by using REGSVR32 key.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Oct 22nd, 2008
0

Re: Class not Registered error

Yes I did register the component and it said it was successful. What else could be missing? I would have thought it was just the DLL
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Entropy1024 is offline Offline
20 posts
since Oct 2008
Oct 22nd, 2008
0

Re: Class not Registered error

try to create the package using package and deployment wizard to use the application on naother system, instead of simple exe file.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Jun 24th, 2010
0
Re: Class not Registered error
Any luck on this problem? I have the EXACT same problem creating a disty!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
FSandlewould is offline Offline
7 posts
since Jun 2010
Jun 24th, 2010
0
Re: Class not Registered error
test
Reputation Points: 10
Solved Threads: 0
Newbie Poster
FSandlewould is offline Offline
7 posts
since Jun 2010
Jun 24th, 2010
0
Re: Class not Registered error
I found a solution: run / install MDAC_TYP.EXE

Microsoft Data Access Components 2.0 is the version I used.

No more problems!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
FSandlewould is offline Offline
7 posts
since Jun 2010
Jun 24th, 2010
0
Re: Class not Registered error
Now how do you include this file in a distribution package so it runs????
Reputation Points: 10
Solved Threads: 0
Newbie Poster
FSandlewould is offline Offline
7 posts
since Jun 2010
Jun 24th, 2010
0
Re: Class not Registered error
AHA! I figured it out! I am using Thraex Astrum installer so it may be a solution specific to that. What one needs to do is essential create and installer A that calls another installer B. With Astrum you do the following meta steps:

-1- include mdac_typ.exe file in your install package just like any other file.

-2- then under "INTERACT AND SHELL" you include an interactive operation that runs mdac_typ.exe in the location were you put it. Since I am not sure when the file would be available for run I used the option to run it after everything else is done.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
FSandlewould is offline Offline
7 posts
since Jun 2010
Jun 24th, 2010
0
Re: Class not Registered error
Reputation Points: 10
Solved Threads: 0
Newbie Poster
FSandlewould is offline Offline
7 posts
since Jun 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Crystal Report Problem with Access 2003
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Play Sound file on Command ButtonVB6





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC