c# - Need advice on referencing a Managed COM Server (EXE) from Client Application -


i have managed com out of process server exe in c# exposing application object model automation working fine. can access unmanaged code (for example, vc++) , starts out of proc server , every works through com, using type library created server exe.

when try , managed code, c# client application, reference server exe, loads server in-process client application.

how can work managed code , run has out of process server in own process?

what trying expose application object model in com on application can automated used unmanaged code , managed code, similar how microsoft office. works fine under unmanaged code through com, trying same managed code instantiates object in-process.

c# example:

myapp.application app = new myapp.application(); 

would instantiate object want start out of process com server well. missing here, wondering if has advice on or look.

i found answer in this article:

regardless of whether implementation .net assembly class library dll or executable, assembly loaded in-process address space of client application. and, in case of exe assembly it neither executed, nor running instance of used instantiate required .net class....

some other unorthodox means required in order simulate use of .net exe assembly out-of-proc com server.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -