CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2000
    Posts
    103

    Class does not support Automation Error

    Hi,

    When I compile and create an executable for my application and place the executable in my server, I amnot able to use the same executable in another system. I get an error message "Class does not support Automation or Expected Interface".

    Can anyone help me with resolving this issue?

    Thanks,
    Anitha


  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868

    Re: Class does not support Automation Error

    Usually this is because a DLL or control referenced by your project is either not registered on the new PC or it is, but is not the correct (or a compatible) version of the DLL or control.


  3. #3
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Class does not support Automation Error

    Error 430 - Class doesn't support Automation or doesn't support expected interface

    Info: The specified class in the GetObject or CreateObject function call was found, but not exposed a
    programmability interface. You can't write code to control an object's behavior unless it has been exposed
    for Automation.

    Also it might be that one of you dll files on that machine is out of date. Error 430 usually occurs when you have
    a version of a dll that does have the same version of an interface that VB is looking for. What you should do
    is make sure you are replacing all files in the installation routine by version. NOTE if you are using
    VB package and deployment wizard it will not replace com dll's no matter what, the best bet here is
    to rename the file that you want replaced and then run the installation.



    I got this error on the line Set rs = New ADODB.Recordset on the user machine. (i did not have this
    error on the machine where VB installed and I had the development done)
    I installed VB on the user machine and the error dissappeared. After I uninstalled VB problem did not
    come back



    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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

Featured