Error in Loading DLL when creating class instance from ActiveX EXE
- From: "Joseph Geretz" <jgeretz@xxxxxxxxxx>
- Date: Fri, 27 May 2005 15:14:51 -0400
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 -
.
- Follow-Ups:
- Re: Error in Loading DLL when creating class instance from ActiveX EXE
- From: Joseph Geretz
- Re: Error in Loading DLL when creating class instance from ActiveX EXE
- Prev by Date: Need to Mimic Hyperterminal
- Next by Date: Re: Create a VB6 Webservice DLL From a WSDL file?
- Previous by thread: Need to Mimic Hyperterminal
- Next by thread: Re: Error in Loading DLL when creating class instance from ActiveX EXE
- Index(es):
Relevant Pages
|