Results 1 to 4 of 4

Thread: Getting Class Factory cannot supply requested class Error

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    23

    Question Getting Class Factory cannot supply requested class Error

    Hi everybody
    This is my first post in this forum

    I am facing a problem, which I am unable to solve. I am developing a software using VB6. Many of the users are using it, but one of them is getting a problem, the error this application is getting is as follows

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

    Automation error

    classFactory cannot supply requested class

    The error is coming from the form load method of the startup form
    And there I am using FileSystemObject’s FileExists and App.path” to load a “.cur” file
    The following "IF" is giving the error

    If ofso.FileExists(App.Path & “\smalllogo.ico”) Then
    ….
    ….
    End if


    I also have a “.dll” file which I am not using at this point

    Please give me a solve.

    kajol

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Check the versions of all the SCRRUN.DLL files. One might be too old.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    23
    Hi Dave Sell

    I am using Inno setup to distribute the application and it has a line says "alwaysskipifsameorolder" for scrrun.dll file, but still I am getting this error, any idea, can a firewall cause these type of problems, because it is showing the error in the line where "fso.FileExists(App.Path & "\" & filename)" is written

    Thanks for the reply

    Kajol

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Manually verify the versions of the SCRRUN.DLL file on all the machines.

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