How can I call Activex exe from .NET Web Service

  • Thread starter Thread starter jreddigari
  • Start date Start date
J

jreddigari

I want to call a Activex exe from .NET Webservice. I want to configure
the server of activex exe in the web service (if tomorrow that
Activiex exe is moved to some other location I do not want to re build
my web service).

I know one solution, of using tblimp to make a dll of the exe and use
it in .NET webservice, but then I will not be able to configure in
that case.

Any help is greatly appreciated

Thanks,
JR
 
I want to call a Activex exe from .NET Webservice. I want to configure
the server of activex exe in the web service (if tomorrow that
Activiex exe is moved to some other location I do not want to re build
my web service).

I know one solution, of using tblimp to make a dll of the exe and use
it in .NET webservice, but then I will not be able to configure in
that case.

Any help is greatly appreciated

Thanks,
JR

TlbImp creates an interop DLL by interogating the COM object's type
library (which is probably embedded in the ActiveX exe in your case).
This DLL does not specify where the COM server (Active Exe) resides -
this is done via registering the server in the registry (normally
"Activex.exe /regserver"). In this way, you can re-register your COM
server to any location on the filesystem of the web server where the
web service that references the interop lives.

You could also look into creating a remoting server that references
the interop dll, and reference this from your winforms client.

Mark.
 
Back
Top