Groups | Blog | Home
all groups > dotnet component services > april 2006 >

dotnet component services : exe COM server ?


coso
4/19/2006 12:00:00 AM
Hi,

Can anyone please tell me if in .NET it's possible to create an exe COM
server ?
I would like to have the possibility to create such an server because I want
to use it via COM from Win32 and also be able to run it via command line.
And it has to be written in C#.

Your response would be highly appreciated.

Thanks,
Cosmin

Michael Nemtsev
5/10/2006 8:22:50 PM
Hello coso,

You need use ActivationOption.Server to host your component on the dllhost.exe
and take into account that all types should be CLS compliant to use them
from unmanaged code

c> Can anyone please tell me if in .NET it's possible to create an exe
c> COM
c> server ?
c> I would like to have the possibility to create such an server because
c> I want
c> to use it via COM from Win32 and also be able to run it via command
c> line.
c> And it has to be written in C#.
c> Your response would be highly appreciated.
c>
c> Thanks,
c> Cosmin
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Simon Hart
6/17/2006 11:24:47 PM
If you mean out-of-process server, then no this is a limitation of
enterprise services in .NET.

Of course, as the previous post suggested, setting the ActivationOption to
server will create the COM object as an in-process COM object which will use
dllhost.exe as a surrogate.

Regards,
Simon.

[quoted text, click to view]

AddThis Social Bookmark Button