4

Is there a way to activate a COM component which is an EXE COM application and also it's dependent COM dlls? I want to activate this COM component from .NET application(VS 2005/VS 2008).

The path of call is C# application --> invoking out-of-proc exe(this is through COM) and then this out-of-proc invokes few COM dlls

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81

3 Answers3

2

Reg-free COM does not work for out of process components.

ActiveX EXE and ActiveX Document project types cannot be used with Reg-Free COM, as discussed in the sidebar.

Simplify App Deployment with ClickOnce and Registration-Free COM

Bob77
  • 13,167
  • 1
  • 29
  • 37
1

Look at Microsoft Forum Registration-Free EXE COM Server ? So, There is no direct way to do this work whithot any additional code. As for me, the code still needs for classic registration to correct date marshaling.

23W
  • 1,413
  • 18
  • 37
0

Registration free activation is described here. Roughly speaking, it looks like you create your COM components and clients as usual, then put them all into the same directory with a manifest file which contains the COM registration information.

1800 INFORMATION
  • 131,367
  • 29
  • 160
  • 239
  • I had seen this and tried using this for the application. it works for a dll, but not for a exe.as I said the path of call is C# application --> invoking out-of-proc exe(this is through COM) and then this out-of-proc invokes few COM dlls. –  Jun 22 '09 at 09:30
  • 1
    oh sorry, I don't think that registration free COM activation really supports DCOM – 1800 INFORMATION Jun 22 '09 at 09:34
  • 1
    thanks for the quick answer. is it documented by microsoft in some place that out-of-proc COM is not supported for registration free activiatation? I searched but couldn't get any information on this. –  Jun 22 '09 at 09:39
  • 1
    I don't have documentation links, but from what i know there is no regfreecom support for out-of-proc servers. – Constantin Jun 22 '09 at 09:50
  • 2
    I found the link here which says out-of-proc is not supported and only dlls are supported. link - http://msdn.microsoft.com/en-us/magazine/cc188708.aspx#S4; search tag "The limitations of Reg-Free COM" –  Jun 24 '09 at 05:54