Error in Loading DLL when creating class instance from ActiveX EXE



I'm having a strange problem when trying to create a class instance from an
ActiveX EXE. Here's the scenario:

Both the client and server are installed on the same platform. The ActiveX
EXE, AutoUpdate.exe, can be run either as a standalone executable, or it can
provide an instance of its worker class, AutoUpdate.Agent, to an
out-of-process client. When run directly from the Windows shell, the program
starts up and presents its interactive interface to the user. I can see that
all the information on the interactive form is correct, which means that the
program was able to internally instantiate an instance of the Agent class
and call its methods successfully.

However, if I run our application, I get an error when trying to instantiate
this class, AutoUpdate.Agent. The error is 'Error in Loading DLL'. Since the
class is internally instantiated successfully (via VB6 New mechanism), it
seems clear to me that the problem is not internal to the class, but rather
a problem concerning the cross-process call which takes place when the class
is instantiated by a request from a remote client (Although the New keyword
is used, this type of instantiation request would be serviced by by the
SCM).

A couple of other facts to keep in mind.

1. This software is successfully installed on hundreds of workstations.
2. On this particular workstation, another of our out of process ActiveX
classes (in a different EXE) is instantiated successfully.
3. This is a Windows 2000 Server with Terminal Services.

Seemingly, the problem is specific to this particular class in this
particular environment. What sort of diagnostic tools can I use to debug
this? I've looked through the configuration in DCOMCnfg and the
configuration for this problematic class seems identical to the
configuration for the other out of process class which is successfully
instantiated.

I'm stymied.

Thanks for any help which you can offer!

- Joe Geretz -


.



Relevant Pages

  • Re: ActiveX control and Authorization issue
    ... security settings the way you do in standalone apps. ... > I am running a DCOM server on Win XP Pro, developed with VC++ 6, MFC. ... My typical client setup makes the SAME CALL to ... This has always worked until I wrote an ActiveX ...
    (microsoft.public.win32.programmer.ole)
  • Re: RWW Errors Make No Sense
    ... That's for the ActiveX issue, but it's very possible the 'server unavailable' is due to first issue ... Try resetting the IE settings to their previous levels and then follow the ... > They then "connect to client computer". ...
    (microsoft.public.windows.server.sbs)
  • Re: Troubles with ActiveX-EXE (Out-Of-Process Server)
    ... If all the client connections are terminated properly, and the server isn't ... continuing to hold references on its own objects, then the ActiveX EXE ... EXE's own Collection is keeping references to those objects, ...
    (microsoft.public.vb.enterprise)
  • The Big Question...
    ... The customer says I need a central database for all sites but the sites are ... deployment/href exe and do not like the fact that I'm restricted to the ... tried adding simple DB access (to SQL Server), ... server or the client? ...
    (microsoft.public.dotnet.framework)
  • The Big Question...
    ... The customer says I need a central database for all sites but the sites are ... deployment/href exe and do not like the fact that I'm restricted to the ... tried adding simple DB access (to SQL Server), ... server or the client? ...
    (microsoft.public.dotnet.distributed_apps)