Results 1 to 4 of 4

Thread: DAO causing problems?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    87

    DAO causing problems?

    I'm having some problems with an app on the computers of some of the people testing it. They're getting this error upon start up of the app

    System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {00000100-0000-0010-8000-00AA006D2EA4} failed due to the following error: 80040154.

    There are only three COM references in my project - one of them is dao.dll - the app works fine for some people but for the two it does not at least one of them is using Vista 64 bit (the other I am still waiting to hear on his o/s but I'm guessing its 64 bit). Does DAO cause problems with 64 bit systems and if so should I just remove all the DAO and make it ADO.NET code or is there some other kind of workaround?

    The app is being installed on the 64 bit machine to C:/Program Files(x86) - is there a different install path that would help the app run? Is it possible this issue has nothing to do with a DAO and Vista 64 bit link?

    The error does not point directly at a line of code - only the module that contains it and in the declarations of that module is

    Friend DAODBEngine_definst As New dao.DBEngine

    which is why I am assuming this is dao related.

    Any help would be appreciated.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: DAO causing problems?

    Any particular reason why you're using DAO with .NET? I know it's going to require some effort, but you may have better luck (certainly in the long run) by moving to ADO.NET and re-writing (yes, from scratch) the code to remove DAO.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    87

    Re: DAO causing problems?

    It was a VB6 project that I carried over to .NET

    I'm assuming that I will have to learn ADO.NET but I was just wondering if there was another alternative first (or even to make sure that this is even the source of the problem)

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: DAO causing problems?

    DAO is almost certainly the source of the problem.

    The help for VB6 (written back in 1998) explicitly said not to use it for new projects, because it was on the way out back then.

    For a few years now it has been officially "obsolete" (which is much worse than "unsupported"!), including an explicit warning about it not being available for 64bit versions of Windows.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width