Nicolas,
Thanks for your answer.
Could you please add more details regarding option B?
By the way, there are 2 another options - let's call them C and D (I'm currently using C):
C) Build out-of-process (Exe) COM server in unmanaged C++ which calls C# in-process DLL using interop;
D) Build out-of-process (Exe) COM server in unmanaged C++ which calls C# objects directly using ability
of C++ to call managed objects from unmanaged code. I didn't try it yet.
Unfortunately, those options have following disadvantages:
- using C++ code;
- using unmanaged code.
Regards,
Slava Gomzin
Senior Software Engineer
Retalix ltd.
(e-mail address removed)
www.retalix.com
----- Nicholas Paldino [.NET/C# MVP] wrote: -----
Ostap and Slava,
The closest thing you can do to creating an out of process com server is
to either a) create an Exe that exposes objects through remoting or B) to
create a serviced component that exposes one object and does not pool the
object.
However, neither of these will give you the exact functionality you
want. If you only have .NET clients though, I would recommend going with
option a.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Ostap Radkovskiy said:
I have the same question. I need to have an outprocess component with some
configuration file. The problem with ordinary inprocess COM is that my DLL
does not know where it's .config file reside as well as .NET studio doesn't
put .config file to binary files directory (because it's class library)
Ostap Radkovskiy,
SoftServe, Inc