开发者

Registering and using out-of-proc COM server in an isolated way (SxS)

We have the following configuration: IE->Creates new process->Process uses out-of-proc COM server

We would like to enjoy side-by-side for our new process and out-of-proc COM server which are deployed in an isolated folder. We th开发者_StackOverflow社区ought using COM registration with relative path but it looks that when trying to load the COM server, svchost.exe is trying to load it from its working directory – which is C:\Windows\System32.

Now the questions are:

1) Does out-of-proc can be registered with relative path?

2) Is side-by-side supported for out-of-proc COM servers? If so, how?

Thanks, Oleg.


No, SxS does not work for out-of-proc servers (including DCOM). Relative path sounds like a massive hack.

If the client knows the location of the exe it can spawn it on its own, circumventing COM activation. At this point you can create objects implemented in the out-of-proc server because it's class factories are registered w/ DCOM.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜