Page 1 of 2 12 LastLast
Results 1 to 40 of 58

Thread: MSADO21 Error - please assist...

  1. #1

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    MSADO21 Error - please assist...

    I have been trying to install a package which references MSADO21.TLB - which is the Microsoft ActiveX Data Objects Library.

    However I am consistently getting this error:

    There was an error when trying to register C:\WINNT\SYSTEM32\MSADO21.TLB
    I have also tried MSADO20.TLB (V 2.0) with the same result.

    This was working fine the other day, but now I am consistently getting this error...

    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  2. #2

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    This is the transcript of the install session from the .log file:


    *** ERROR: No entrypoint for DllRegisterServer() was found in 'C:\WINNT\system32\MSADO21.TLB'
    *** DURING THIS ACTION: DllSelfRegister: "C:\WINNT\system32\MSADO21.TLB"

    *** ERROR: An error occurred while registering the file 'C:\WINNT\system32\MSADO21.TLB'
    *** ERROR: (User Responded with 'Ignore')
    *** DURING THIS ACTION: DllSelfRegister: "C:\WINNT\system32\MSADO21.TLB"
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  3. #3

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    I've also searched this site, and it seems over at least a year, various others have had similar if not identical problems, but no-one seems to have a solution...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Can you manually register it useing regsvr32?

    What OS are you running?

  5. #5

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    It's WINNT. And I've tried in a network environment and just as a workstation. And no, I can't register it myself. It gives me:

    *** ERROR: No entrypoint for DllRegisterServer() was found in 'C:\WINNT\system32\MSADO21.TLB'
    as an error when I try that... (part of the same error report in the .log file...)
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Here is all I could find in MSDN on the subject. I hope it helps.
    Referencing the ADO Libraries
    As with any library that provides a type library, you must set a reference to the ADO library you want to use in your Visual Basic project. The type library for the current version of ADO is contained within the ADO DLL, msado15.dll. (To meet the needs of certain applications written with older versions, older versions of the type library can be referenced as well through the provided msado20.tlb, msado21.tlb, and msado25.tlb files.)

    To reference the ADO library in your Visual Basic project, open the Project menu and click References. Scroll down and select Microsoft ActiveX Data Objects 2.7 Library. If an application compiled on a system with ADO 2.7 must run on a computer with a previous version of ADO installed, it needs to use one of the backwards compatibility type libraries. Add a reference to the appropriate .tlb file instead of to msado15.dll.
    This link might help, but it didn't do anything for me.
    http://msdn.microsoft.com/library/de...tml/mdac25.asp

  7. #7

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Ok, another piece of info: I noticed that when using the P&D wizard today, to try and rebuild the install, it couldn't find the dependancy info for MSADO21.TLB. I said keep going...blah...blah.

    I'm trying again, and this time it didn't tell me that it couldn't find the dep info, so I'll see what happens this time...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  8. #8

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Hmmm.... no good on that front. I'll try your info now.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  9. #9
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    Hmmm sounds like you need to re-install mdac to me.
    Else go to mdac 2.7.

  10. #10

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    I'm in the process of getting MDAC2.7 now - just gotta free up 20MB on this computer's C: drive...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  11. #11

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Hmmm... still having troubles....

    Initially I got a problem due to a lack of MSDART.DLL, which I have now included in my setup, so it all installs correctly, but then when I run the thing I get

    Method ~~ of ~~ Failed
    Thanks Microsoft.... reeeeaaallll helpful...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  12. #12

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    I narrowed the problem down to run-time error 3706.
    The detail from MSDN is this:

    Provider cannot be found. It may not be properly installed.
    What does this mean, and how do I solve it?
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  13. #13
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    Post the code that you are using for your connection string. There may be a clue there.

    Mega.
    "If at first you don't succeed, then skydiving is not for you"

  14. #14

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Code:
    Global Const strConnection = "Driver={Microsoft Access Driver " & _
        "(*.mdb)};Provider=MSDASQL.1;Persist Security " & _
        "Info=False;Extended Properties='DBQ=" & CurriculumDirectory & _
        "courseDocs.mdb;DefaultDir=" & CurriculumDirectory & _
        ";DriverId=281;FIL=MS Access;MaxBufferSize=2048;" & _
        "PageTimeout=5;UID=admin;PWD=safety;Initial Catalog=" & _
        CurriculumDirectory & "courseDocs'"
    That's pretty much it. I actually have it on one line, so I just split it up then.

    As I may have mentioned, it was working, until the other day. I changed nothing at all in regards to the DB, and it wouldn't install properly after that. Now I've updated to MDAC2.7, and it installs OK, but then I get that nuisance error there, which I tracked down to

    RunTime Error '3706' - Provider not installed correctly or something

    See this thread also: http://www.vbforums.com/showthread.p...hlight=mdac2.7
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  15. #15
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    Does it work on your machine okay and the problem lies with when you install it elewhere? or.. can you not get it to work now either?

    Mega.
    "If at first you don't succeed, then skydiving is not for you"

  16. #16

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    MY machine is fine, it has VB on it, and various other things.
    The problem on other machines isn't apparent if I had previously installed it on them either.

    The initial install error still came up, but it didn't affect the program, as I guess there was correct stuff already on that machine, but when installing on a 'new' machine, It installs ok, but then doesn't work (as per error described)...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  17. #17
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    It is absolutely essential that MDAC is installed on the host machines and it must be the same (or higher) version that you used to compile the program.
    I assume you have done this?

    Mega.
    "If at first you don't succeed, then skydiving is not for you"

  18. #18

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    You'd think so wouldn't you...

    No, I'm pretty sure that at the original installation it installed the MDAC, but this would have been when I was using V2.0 or 2.1. Now I've upped to 2.7 - how do I install that on the other machine?
    I thought it was automatic, as part of the P&D setup.exe, but I am probably wrong...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  19. #19

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Ok, ta, I'll give that a burl.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  20. #20

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Yep, got that already. Now I'm in the process of downloading the Service Packs so I can install the latest IE, so I can install MDAC2.7...


    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  21. #21
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    LOL
    I hope it works after all that.
    "If at first you don't succeed, then skydiving is not for you"

  22. #22

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Mmm... me too...

    Cheers.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  23. #23

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    Angry

    Far out... give me a break.... I've now installed all that stuff, and I'm getting an Error saying

    "...[Microsoft ODBC Driver]...Could not open registry key (null)..."

    or something.... ****ing hell - this thing just doesn't want to work does it...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  24. #24
    Jethro
    Guest
    Bummer

    Have you tried....and this is a long shot...reinstalling vb itself. Almost sounds, if it was working, that something has corrupted itself somewhere...as l say long shot, but what the hey

    Fixed a problem we were having with Excel by doing this, after of course spending a week scouring code, msdn, etc.....

    Somethings just suck for no apparent reason, we feel your pain, and are only smiling slighty at it....in that phew it's not me dealing with it sort of way....

    Hope it helps, or focuses or whatever...

  25. #25

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    The thing is, the exact same install package will work on other machines on the same network... I am soon to test it on a fesh machine, as all the ones where it works are ones I had previously installed to (including MDAC), so I need to know if it is a corruption problem of some sort...

    Still waiting though - getting things done, including obtaining resources - in here is a ****ing big slow hassle...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  26. #26
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    What was your problem again rj?

    hhhhhahahahahehe

    Ok you never said you were using sql!

    Quote from MS: "Due to issues with clustering, this release is currently NOT supported on SQL 7.0 Clustered Servers or SQL 6.5 Clustered Servers"

    Even if this isnt your case try what i mention below!

    So 2 things you can do. Go back and try 2.5 or use the provider SQLOLEDB instead od MSDASQL!

    Hope this is it!

  27. #27
    Jethro
    Guest
    If is working on other machines, then deffiantly corruption dude. Tried to answer in chit chat and went into some weird error...but...

    Which version of NT service packs etc on this machine and one that it does work on. Am finding allsorts of problems with NT 4 SP 6, so that may be it. Currently moding a vb5 app, adding a few tables and sorting routines, the program works at work, but here l can't even get the original code to run

  28. #28

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    But it works on other virtually identical machines... Why would changing the provider make a difference?

    But I shall keep it in mind...

    As for 2.5, I don't know if I even have that anymore - when I installed MDAC2.7, I lost references to earlier versions...
    And anyway, 2.5 was always giving me stupid problems when distributing...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  29. #29

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Originally posted by Jethro
    If is working on other machines, then deffiantly corruption dude. Tried to answer in chit chat and went into some weird error...but...

    Which version of NT service packs etc on this machine and one that it does work on. Am finding allsorts of problems with NT 4 SP 6, so that may be it. Currently moding a vb5 app, adding a few tables and sorting routines, the program works at work, but here l can't even get the original code to run
    It had SP5, but in a vain effort to improve it (by installing MDAC 2.7) I installed SP6, and then IE6... no change on that machine...

    The machines it works on are either SP5 or SP6. My testing machine is SP6, everything works on it - my dev. machine is SP5 - everything works on that...



    Anyway, still waiting on tester number 2...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  30. #30
    Jethro
    Guest
    Real bummer Sounding awfully like a rebuild to me. Was msdn any help at all? Could go and check the error number if you like, have membership (hopefully if SK has got off his ass and done it like he promised)...

  31. #31

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    The new error number is about 10 digits long...
    I'll have to get it...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  32. #32
    Jethro
    Guest
    Another suggestion, which might be lamer than the first, but then why not cut out all the simple answers. On the machine with the problems try network neighbourhood to ensure you have access to the database...who knows stranger things have happened

  33. #33

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Geez, this is a pain...
    I put in error handling stuff, and now the error number isn't displayed...
    The worst bit is that the offending machine is 50m up the hall...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  34. #34

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Originally posted by Jethro
    Another suggestion, which might be lamer than the first, but then why not cut out all the simple answers. On the machine with the problems try network neighbourhood to ensure you have access to the database...who knows stranger things have happened
    Access is fine - it's in the general shared area. That machine doesn't have Access anyway, so I can't open it up.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  35. #35
    Jethro
    Guest
    Originally posted by rjlohan
    Geez, this is a pain...
    I put in error handling stuff, and now the error number isn't displayed...
    The worst bit is that the offending machine is 50m up the hall...
    *Jethro waiting for rj to get back.....oh and the error text as well would be helpful

    50m up the hall...not a novell network you got there is it Have had problems with that stuff, that could cause this....something about distance, and couldn't we move the machine according to the novell tech....like right, and that's why novell ain't selling partner

  36. #36

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Originally posted by Jethro


    *Jethro waiting for rj to get back.....oh and the error text as well would be helpful

    50m up the hall...not a novell network you got there is it Have had problems with that stuff, that could cause this....something about distance, and couldn't we move the machine according to the novell tech....like right, and that's why novell ain't selling partner

    Well, now that you mention it.........
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  37. #37

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    NEed more time - gotta recompile minus the error 'handling'...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  38. #38
    Jethro
    Guest
    Originally posted by rjlohan



    Well, now that you mention it.........
    Would be talking to novell then rj, their networks suck over any distance...and may be the cause of your problem

  39. #39

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Ok, here it is.
    It occurs identically twice, when I attempt to make a DB connection...

    Err: -2147467259
    [Microsoft][ODBC Microsoft Access 97 Driver]General Error. Unable to open registry key '(null)'.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  40. #40

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Originally posted by Jethro


    Would be talking to novell then rj, their networks suck over any distance...and may be the cause of your problem
    Yeah right - like I'm gonna get them to change their network...they won't even upgrade from Internet Explorer 2.3 without a fuss...
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

Page 1 of 2 12 LastLast

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