Re: mscoree.dll creating new appdomain with local configuration

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Calinga" <Calinga@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7BF89782-2AE1-491B-90FE-7479F25B2B24@xxxxxxxxxxxxxxxx
I am creating a managed plug-in for a com based host application. For the
host application to find the new plug-in, I have to write some bits into
the
registry.
...
How easy is it to create a smarter mscoree.dll that knows about the
ConfigFile entry in the registry and does create a new AppDomain with the
Configuration file. Is it possible at all.

If someone has done it before or has a proper understanding what it would
be
all about, please let me know.

I'm not sure I understand your question exactly. MSCOREE is provided by the
o/s. It is not modifiable or replaceable.

I can tell you though that I wanted to permit managed plug-ins to be loaded
by a native server of mine. The way I chose to get the application domain
configured the way I wanted it was to use the "hosting" API. It was a bit of
work, but in the end, I got the domain I wanted and the interoperability I
needed.

If you want to go that route take a look at CorBindToRuntimeEx()

http://msdn2.microsoft.com/en-us/library/99sz37yh.aspx

which is what actually starts the CLR in a process.

The hosting overview is here

http://msdn2.microsoft.com/en-us/library/9x0wh2z3.aspx

Regards,
Will




.



Relevant Pages

  • Re: Pattern Question
    ... The discussion of the plug-in vs registry is a step high on the ... Registry pattern doesn't have the same issue about compile time linking ...
    (comp.object)
  • Re: Pattern Question
    ... The discussion of the plug-in vs registry is a step high on the ... Meaning it contains a builder and a number of other components. ... Registry pattern doesn't have the same issue about compile time linking ...
    (comp.object)
  • Re: Pattern Question
    ... description), (this is also like Prog to I'face,LSP --I think registry ... plug-in and registry. ... about a plug-in pattern as Linking types at configuration time not ... no compile time linking. ...
    (comp.object)