How can I call Activex exe from .NET Web Service

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
 
M

Mark

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top