How to create COM exe server in NET

  • Thread starter Thread starter Volodia
  • Start date Start date
V

Volodia

Hi

In VB6 it is very easy to create out proc server in ActiveX.exe project.

How to do that in .NET ?
If I understood properly - there are no ways to do that in .NET

It looks like by design?

Thanks,

Voloida.
 
Hi,

Yes, there is no concept of out-of process server in .NET. The closest match
would be to create a Remoting server and running it in a different
application domain.


Regards,
Akila
 
Yes remoting is the .NET way.

But if you want to stick with COM,
You can expose a .NET component via a COM interface.
The COM client can then invoke the .NET component via CoCreateInstanceEx(),
specifying the remote server.
You need to explort the TLB on the client (caller) in order to make this
work, just as with normal COM.
Did you try this?

System.EnterpriseServices also supports hosting remote .NET components.

-D
 
Back
Top