OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"-VBForums
Results 1 to 10 of 10

Thread: OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    2

    OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"

    Hi,

    I could really use some help. I am not the most knowledgable and would appreciate any guidance... I did a web search already at some sites including Microsoft, but I have not found a soultion yet.

    Problem: CANNOT OPEN VISUAL BASIC 6.0; Says "Unexpected error; quitting"
    Machine/Software:
    OS: XP Media Center (although system info says XP Professional 5.1.2600 Service Pack2 Build 2600)
    PC: Acer AspireE36
    SW:Microsoft Visual Studio 6.0 Enterprise Edition

    History:
    1. Could not open visual basic 6.0. I got the an error that the DAO350.DLL could not be found.

    2. So following some suggestions from the web:
    a) Renamed old DAO350.DLL as DAO350.DLLOLD
    b) I took this file from Visual Studio Disk 1 and copied it into the
    C:\Program Files\Common Files\Microsoft Shared\DAO
    c) Regsvr32 "C:\Program Files\Common Files\Microsoft Shared\DAO\DAO350.DLL"
    d) Then I got a successful message that it registered
    e) It did not work. When I tried to open the visual basic 6.0 now I get:
    "Unexpected error; quitting" message.

    WHAT DO I DO PLEASE?

    I even loaded the component checker 2.0 as suggest via microsoft website to look up the Microsoft Data Access Components (MDAC).
    (see Article ID: 304230 and 301202 on http://support.microsoft.com/kb/304230 and htpp://support.microsoft.com/default.aspx?kbid=301202))

    It says MDAC 2.8 SP1 ON WINDOWS XP SP2. I am not sure what this MDAC does for me, but I looked at it anyways.

  2. #2
    Hyperactive Member Chathura's Avatar
    Join Date
    Nov 2005
    Location
    Sri Lanka
    Posts
    342

    Re: OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"

    Try to repair your VB6 installation using a VB6 CD or re - install it after uninstalling+restarting. I'm not sure what is the problem, you may be able to get rid of it.
    If the post is heplful, Please Rate it
    Chathura Wijekoon

  3. #3
    Addicted Member kewakl's Avatar
    Join Date
    Oct 2006
    Location
    between keyboard and chair
    Posts
    220

    Re: OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"

    I have seen an error message "Unexpected error; quitting"

    my cause was the DCOM Server Process Launcher service was disabled.
    EDIT:the VB IDE window would display then promptly throw the error and die
    Last edited by kewakl; Mar 19th, 2007 at 05:41 AM. Reason: add info
    Do not use if shrinkwrap is broken or missing!
    I'm learning how to fish, too!

  4. #4
    Super Moderator Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,335

    Re: OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"

    Does this happen across the board or only with one, specific, project?
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

  5. #5
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,169

    Re: OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"

    @zfvbwire, do you have

    Program Files\Common Files\Microsoft Shared\DAO\Dao350.dll ?

    or do you have Dao360.dll. If you are using a database made with Access 2000 then you will need to use Dao360.dll. If you have the latter you can use that.

    You can download MDAC I think MDAC 2.6 holds Dao350.dll. MDAC 2.8 holds Dao360.dll.

    If the link doesn't show on your computer just goto Microsoft and do a search for MDAC Download
    Last edited by Keithuk; Mar 19th, 2007 at 03:34 PM.
    Keith

    I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.


  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    2

    Re: OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"

    Hello,

    Thank you all for replying .. this site has great response (this was my fist post ever)
    .. To answer all the questions posed by people helping me up to this point:

    1. I am not using Access 2000
    2. This problem happens when I want to start the visual basic 6.0. So I cannot even get to any projects to begin with.
    3. TO KEITHUK: If I have MDAC 2.8 does that mean my DAO350.DLL gets affected somehow? Is that what you mean? Should I go back to a older form of MDAC?
    4. I could not mysteriously find the visual studio 6.0 in the ADD/REMOVE Programs section. So I tried to re-install over it. It would not. Perhaps I should just delete the program, but then I know there are other places this program stores files into.
    5. TO KEWAKL: "my cause was the DCOM Server Process Launcher service was disabled." What should I do here please? How did you find this problem out? How do I see if this is a problem? (thank you)
    6. My DAO file has both DAO350.DLL and DAO360.DLL. Can this be causing me the problem? Do I need to have only one for vb to work?

    I will send more replies ... Still in trouble mode ... And now apparently my RS232 is being problematic. Not sure if this is related...

    IS THERE A CONNECTION BETWEEN DAO350.DLL AND RS232?
    Last edited by zfvbwire; Mar 19th, 2007 at 11:06 AM. Reason: MORE INFORMATION

  7. #7
    Addicted Member kewakl's Avatar
    Join Date
    Oct 2006
    Location
    between keyboard and chair
    Posts
    220

    Re: OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"

    5. TO KEWAKL: "my cause was the DCOM Server Process Launcher service was disabled." What should I do here please? <SNIP> How do I see if this is a problem?
    StartButton.Settings.Control Panel.Administrative Tools.Services
    you may have to scroll down slightly to see it, but look for

    DCOM Server Process Launcher
    (Part of the name may be covered by the next column, so just look for DCOM.)

    Status should be Started
    Startup Type should be Automatic

    EDIT:
    If this service Startup Type is not automatic,
    Double-Click the DCOM entry.
    look for Startup type: combobox
    select Automatic
    click the OK button.
    I think that you'll have to reboot.
    I tried to Start the service, but it errored out - saying that it failed to respond.

    How did you find this problem out? (thank you)
    I was trying to kill unnecessary services, and then found VB would not start, so I undid my actions until I found that vb *requires* this service.

    EDIT: Do not pay attention to the tooltip in my attached image!
    Attached Images Attached Images  
    Last edited by kewakl; Mar 19th, 2007 at 11:43 AM. Reason: added *startup instructions*
    Do not use if shrinkwrap is broken or missing!
    I'm learning how to fish, too!

  8. #8
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,169

    Re: OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"

    Quote Originally Posted by zfvbwire
    1. I am not using Access 2000
    2. This problem happens when I want to start the visual basic 6.0. So I cannot even get to any projects to begin with.
    3. TO KEITHUK: If I have MDAC 2.8 does that mean my DAO350.DLL gets affected somehow? Is that what you mean? Should I go back to a older form of MDAC?
    6. My DAO file has both DAO350.DLL and DAO360.DLL. Can this be causing me the problem? Do I need to have only one for vb to work?
    I understand your problem a bit more now. VB6 doesn't startup because of this error.

    So which Access are you using 97?
    If your using 2003 then you will definitely need DAO360.DLL.

    So what files do you have in Program Files\Common Files\Microsoft Shared\DAO\ ?

    You can't have DAO350.DLL and DAO360.DLL in the same project. Try and add them and see what it says.

    If you want DAO350.DLL then download one of the earlier versions. There are a lot more files in the download rather than just DAO350.DLL.
    Keith

    I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.


  9. #9
    Hyperactive Member Chathura's Avatar
    Join Date
    Nov 2005
    Location
    Sri Lanka
    Posts
    342

    Re: OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"

    I could not mysteriously find the visual studio 6.0 in the ADD/REMOVE Programs section. So I tried to re-install over it. It would not. Perhaps I should just delete the program, but then I know there are other places this program stores files into.
    I don't think deleting the program will help you. Did you clean your registry using a registry cleaner. I think your VB6 installation is corrupted or not properly installed. Otherwise it should be displayed at Add\Remove Programs. Better if you can contact a technical person and clean & reset your OS before re installing VB6. I suggest u to try with a different VB6 installation disk.
    If the post is heplful, Please Rate it
    Chathura Wijekoon

  10. #10
    Junior Member
    Join Date
    Feb 2006
    Posts
    17

    Re: OPENING VISUAL BASIC 6.0 ERROR, DAO350.DLL, "Unexpected error; quitting"

    try registering the new dll you copied from your vb disk.Try searching in google like regsvr32

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.