run time error (80040111) Automation Error ClassFactory cannot supply requested class-VBForums
Results 1 to 6 of 6

Thread: run time error (80040111) Automation Error ClassFactory cannot supply requested class

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2004
    Posts
    65

    run time error (80040111) Automation Error ClassFactory cannot supply requested class

    Anyone ever get this error ?

    Run-time error '-2147221231 (80040111)':

    Automation error
    ClassFactory cannot supply requested class

    I get this error when i am doing a Set MyShortcut = VBsObj.CreateShortcut(ShortCutPath & ".lnk")

    I am only trying to create a shortcut here...and the server running this program is Windows 2000... Please advise..

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: run time error (80040111) Automation Error ClassFactory cannot supply requested c

    smtp,

    Perhaps this will help ClassFactory

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2004
    Posts
    65

    Re: run time error (80040111) Automation Error ClassFactory cannot supply requested class

    yah, i was reading that, i'd need the other guy to test it first before i know, but do you see anything wrong w. my code?

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: run time error (80040111) Automation Error ClassFactory cannot supply requested class

    smtp,

    What code? Errors are not usually one line of code. They generally are a series of conditions that lead to one line having a problem.

    Post some code.

  5. #5
    New Member
    Join Date
    Oct 2007
    Posts
    1

    Re: run time error (80040111) Automation Error ClassFactory cannot supply requested class

    This was happening to me as well.

    In VB I create two things that compromise my program.
    1. .dll
    2. .exe

    I made a code change in the .dll and simply wanted to push out the new .dll to my users that operate the program. As soon as I replace the .dll the executable complains with the error listed here.

    To fix this, I needed to recompile the .exe. It was almost like the .exe creates a checksum with regards to the .dll reference.

    I don't know if this fits your symtoms, but it worked for me.

    Terrence

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: run time error (80040111) Automation Error ClassFactory cannot supply requested class

    That is because you are not using Binary Compatibility OR you are using Binary compatibility and have changed a function/sub definition.

    VB does present message boxes about this when it is happening but you do have to read them...

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.